module HTTPX::Plugins::Compression::GZIP

  1. lib/httpx/plugins/compression/gzip.rb

Methods

Public Class

  1. configure
  2. load_dependencies

Public Instance

  1. decoder
  2. encoder

Public Class methods

configure (*)
[show source]
   # File lib/httpx/plugins/compression/gzip.rb
13 def self.configure(*)
14   Compression.register "gzip", self
15 end
load_dependencies (*)
[show source]
   # File lib/httpx/plugins/compression/gzip.rb
 9 def self.load_dependencies(*)
10   require "zlib"
11 end

Public Instance methods

decoder ()
[show source]
   # File lib/httpx/plugins/compression/gzip.rb
52 def decoder
53   Decoder.new(Zlib::Inflate.new(32 + Zlib::MAX_WBITS))
54 end
encoder ()
[show source]
   # File lib/httpx/plugins/compression/gzip.rb
48 def encoder
49   Encoder.new
50 end