Module: EventMachine::HttpDecoders

### Home Classes Methods

### In Files

- lib/em-http/decoders.rb

### Namespace

- CLASS EventMachine::HttpDecoders::Base
- CLASS EventMachine::HttpDecoders::DecoderError
- CLASS EventMachine::HttpDecoders::Deflate
- CLASS EventMachine::HttpDecoders::GZip
- CLASS EventMachine::HttpDecoders::GZipHeader

### Methods

- ::accepted_encodings
- ::decoder_for_encoding

### Class/Module Index

Quicksearch

- EventMachine
- EventMachine::HTTPMethods
- EventMachine::HttpClient
- EventMachine::HttpClient::CookieJar
- EventMachine::HttpConnection
- EventMachine::HttpDecoders
- EventMachine::HttpDecoders::Base
- EventMachine::HttpDecoders::DecoderError
- EventMachine::HttpDecoders::Deflate
- EventMachine::HttpDecoders::GZip
- EventMachine::HttpDecoders::GZipHeader
- EventMachine::HttpEncoding
- EventMachine::HttpRequest
- EventMachine::HttpResponseHeader
- EventMachine::HttpStatus
- EventMachine::HttpStubConnection
- EventMachine::Middleware
- EventMachine::Middleware::DigestAuth
- EventMachine::Middleware::JSONResponse
- EventMachine::Middleware::OAuth
- EventMachine::Middleware::OAuth2
- EventMachine::MultiRequest
- HttpClientOptions
- HttpConnectionOptions
- String

No matching classes.

# 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.