Class: HTTPX::Plugins::Brotli::Deflater
- Inherits:
-
Transcoder::Deflater
- Object
- Transcoder::Deflater
- HTTPX::Plugins::Brotli::Deflater
- Defined in:
- lib/httpx/plugins/brotli.rb
Instance Attribute Summary
Attributes inherited from Transcoder::Deflater
Instance Method Summary collapse
Methods inherited from Transcoder::Deflater
#bytesize, #close, #initialize, #read, #rewind
Constructor Details
This class inherits a constructor from HTTPX::Transcoder::Deflater
Instance Method Details
#deflate(chunk) ⇒ Object
7 8 9 10 11 |
# File 'lib/httpx/plugins/brotli.rb', line 7 def deflate(chunk) return unless chunk ::Brotli.deflate(chunk) end |