Class: HTTPX::Plugins::Brotli::Deflater

Inherits:
Transcoder::Deflater show all
Defined in:
lib/httpx/plugins/brotli.rb

Instance Attribute Summary

Attributes inherited from Transcoder::Deflater

#content_type

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