EventMachine::HttpDecoders

Provides a unified callback interface to decompression libraries.

Constants

DECODERS

Public Class Methods

accepted_encodings() click to toggle source
# File lib/em-http/decoders.rb, line 12
def accepted_encodings
  DECODERS.inject([]) { |r, d| r + d.encoding_names }
end
decoder_for_encoding(encoding) click to toggle source
# File lib/em-http/decoders.rb, line 16
def decoder_for_encoding(encoding)
  DECODERS.each { |d|
    return d if d.encoding_names.include? encoding
  }
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.