module HTTPX::Plugins::Compression::Deflate

  1. lib/httpx/plugins/compression/deflate.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/deflate.rb
12 def self.configure(*)
13   Compression.register "deflate", self
14 end
load_dependencies (*)
[show source]
   # File lib/httpx/plugins/compression/deflate.rb
 7 def self.load_dependencies(*)
 8   require "stringio"
 9   require "zlib"
10 end

Public Instance methods

decoder ()
[show source]
   # File lib/httpx/plugins/compression/deflate.rb
43 def decoder
44   Decoder.new(Zlib::Inflate.new(32 + Zlib::MAX_WBITS))
45 end
encoder ()
[show source]
   # File lib/httpx/plugins/compression/deflate.rb
39 def encoder
40   Encoder
41 end