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