Module: Cybertrain::GzipFFI

Defined in:
cybertrain/http/gzip_ffi.rb

Overview

The gzip inflater Request#decoded_body uses: require "cybertrain" installs it. A program that loads only the HTTP layer requires cybertrain/http/gzip_ffi and calls GzipFFI.install! itself.

Class Method Summary collapse

Class Method Details

.install! ⇒ nil

Makes Request#decoded_body inflate through this module.

Returns:

  • (nil)


252
253
254
255
# File 'cybertrain/http/gzip_ffi.rb', line 252

def self.install!
  Request.inflater = inflater
  nil
end