Class: EventMachine::HttpRequest

### Home Classes Methods

### In Files

- lib/em-http/request.rb
- lib/em-http/version.rb

### Parent

Object

### Methods

- ::middleware
- ::new
- ::use

### 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::HttpRequest

### Constants

VERSION

### Public Class Methods

middleware() click to toggle source

    # File lib/em-http/request.rb, line 19
    def self.middleware
      @middleware
    end

new(uri, options={}) click to toggle source

    # File lib/em-http/request.rb, line 5
    def self.new(uri, options={})
      uri = uri.clone
      connopt = HttpConnectionOptions.new(uri, options)

      c = HttpConnection.new
      c.connopts = connopt
      c.uri = uri
      c
    end

use(klass, *args, &block) click to toggle source

    # File lib/em-http/request.rb, line 15
    def self.use(klass, *args, &block)
      @middleware << klass.new(*args, &block)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.