module HTTPX::Transcoder::GZIP

  1. lib/httpx/transcoder/gzip.rb

Methods

Public Instance

  1. decode
  2. encode

Public Instance methods

decode(response, bytesize: nil)
[show source]
   # File lib/httpx/transcoder/gzip.rb
68 def decode(response, bytesize: nil)
69   bytesize ||= response.headers.key?("content-length") ? response.headers["content-length"].to_i : Float::INFINITY
70   Inflater.new(bytesize)
71 end
encode(body)
[show source]
   # File lib/httpx/transcoder/gzip.rb
64 def encode(body)
65   Deflater.new(body)
66 end