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
65 def decode(response, bytesize: nil)
66   bytesize ||= response.headers.key?("content-length") ? response.headers["content-length"].to_i : Float::INFINITY
67   Inflater.new(bytesize)
68 end
encode(body)
[show source]
   # File lib/httpx/transcoder/gzip.rb
61 def encode(body)
62   Deflater.new(body)
63 end