module HTTPX::Transcoder::Deflate

  1. lib/httpx/transcoder/deflate.rb

Methods

Public Instance

  1. decode
  2. encode

Public Instance methods

decode(response, bytesize: nil)
[show source]
   # File lib/httpx/transcoder/deflate.rb
31 def decode(response, bytesize: nil)
32   bytesize ||= response.headers.key?("content-length") ? response.headers["content-length"].to_i : Float::INFINITY
33   GZIP::Inflater.new(bytesize)
34 end
encode(body)
[show source]
   # File lib/httpx/transcoder/deflate.rb
27 def encode(body)
28   Deflater.new(body)
29 end