Module: OAuth::RequestProxy

### Home Classes Methods

### In Files

- lib/oauth/request_proxy.rb
- lib/oauth/request_proxy/action_controller_request.rb
- lib/oauth/request_proxy/base.rb
- lib/oauth/request_proxy/jabber_request.rb
- lib/oauth/request_proxy/mock_request.rb
- lib/oauth/request_proxy/rack_request.rb

### Namespace

- MODULE OAuth::RequestProxy::Curl
- MODULE OAuth::RequestProxy::EventMachine
- MODULE OAuth::RequestProxy::Net
- MODULE OAuth::RequestProxy::Typhoeus
- CLASS OAuth::RequestProxy::ActionControllerRequest
- CLASS OAuth::RequestProxy::Base
- CLASS OAuth::RequestProxy::JabberRequest
- CLASS OAuth::RequestProxy::MockRequest
- CLASS OAuth::RequestProxy::RackRequest
- CLASS OAuth::RequestProxy::UnknownRequestType

### Methods

- ::proxy

### Files

- LICENSE
- README.rdoc
- TODO

### Class/Module Index

Quicksearch

- OAuth
- OAuth::AccessToken
- OAuth::CLI
- OAuth::Client
- OAuth::Client::Helper
- OAuth::Consumer
- OAuth::ConsumerToken
- OAuth::Error
- OAuth::Helper
- OAuth::OAuthTestHelper
- OAuth::Problem
- OAuth::RequestProxy
- OAuth::RequestProxy::ActionControllerRequest
- OAuth::RequestProxy::Base
- OAuth::RequestProxy::Curl
- OAuth::RequestProxy::Curl::Easy
- OAuth::RequestProxy::EventMachine
- OAuth::RequestProxy::EventMachine::HttpRequest
- OAuth::RequestProxy::JabberRequest
- OAuth::RequestProxy::MockRequest
- OAuth::RequestProxy::Net
- OAuth::RequestProxy::Net::HTTP
- OAuth::RequestProxy::Net::HTTP::HTTPRequest
- OAuth::RequestProxy::RackRequest
- OAuth::RequestProxy::Typhoeus
- OAuth::RequestProxy::Typhoeus::Request
- OAuth::RequestProxy::UnknownRequestType
- OAuth::RequestToken
- OAuth::Server
- OAuth::ServerToken
- OAuth::Signature
- OAuth::Signature::Base
- OAuth::Signature::HMAC
- OAuth::Signature::HMAC::Base
- OAuth::Signature::HMAC::MD5
- OAuth::Signature::HMAC::RMD160
- OAuth::Signature::HMAC::SHA1
- OAuth::Signature::HMAC::SHA2
- OAuth::Signature::MD5
- OAuth::Signature::PLAINTEXT
- OAuth::Signature::RSA
- OAuth::Signature::RSA::SHA1
- OAuth::Signature::SHA1
- OAuth::Signature::UnknownSignatureMethod
- OAuth::Token
- OAuth::Unauthorized
- ActionController
- ActionController::Base
- ActionController::TestRequest
- Digest
- Digest::HMAC
- EventMachine
- EventMachine::HttpClient
- Net
- Net::HTTPGenericRequest
- Object
- String

No matching classes.

# OAuth::RequestProxy

### Public Class Methods

proxy(request, options = {}) click to toggle source

    # File lib/oauth/request_proxy.rb, line 7
    def self.proxy(request, options = {})
      return request if request.kind_of?(OAuth::RequestProxy::Base)

      klass = available_proxies[request.class]

      # Search for possible superclass matches.
      if klass.nil?
        request_parent = available_proxies.keys.find { |rc| request.kind_of?(rc) }
        klass = available_proxies[request_parent]
      end

      raise UnknownRequestType, request.class.to_s unless klass
      klass.new(request, options)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.