Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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. Public Function

readerDecompressing

Public Function
std.http.Client.Response.readerDecompressing
pub fn readerDecompressing(
        response: *Response,
        transfer_buffer: []u8,
        decompress: *http.Decompress,
        decompress_buffer: []u8,
    ) *Reader

If compressed body has been negotiated this will return decompressed bytes.

If the returned Reader returns error.ReadFailed the error is available via bodyErr.

Asserts that this function is only called once.

See also:

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,
        );
    }