Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › http › Client › Response › readerDecompressing Public Function readerDecompressing Doc Source Public Function std.http.Client.Response.readerDecompressing
pub fn readerDecompressing (
response : *Response ,
transfer_buffer : []u8 ,
decompress : *http .Decompress ,
decompress_buffer : []u8 ,
) *Reader Params response : *Response transfer_buffer : []u8 decompress : *http .Decompress decompress_buffer : []u8 File http/Client.zig: 748
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764 pub fn readerDecompressing (
response : *Response ,
transfer_buffer : []u8 ,
decompress : *http .Decompress ,
decompress_buffer : []u8 ,
) *Reader {
response .head .invalidateStrings ();
const head = &response .head ;
return response .request .reader .bodyReaderDecompressing (
transfer_buffer ,
head .transfer_encoding ,
head .content_length ,
head .content_encoding ,
decompress ,
decompress_buffer ,
);
}
If compressed body has been negotiated this will return decompressed bytes.
If the returned
Readerreturnserror.ReadFailedthe error is available viabodyErr.Asserts that this function is only called once.
See also:
reader