method

inflater

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Net::HTTPResponse
inflater() private

Checks for a supported Content-Encoding header and yields an Inflate wrapper for this response’s socket when zlib is present. If the Content-Encoding is not supported or zlib is missing, the plain socket is yielded.

If a Content-Range header is present, a plain socket is yielded as the bytes in the range may not be a complete deflate block.

Show source
Register or log in to add new notes.