Class: Faraday::Request::Authorization
- Inherits:
-
Middleware
- Object
- Middleware
- Faraday::Request::Authorization
- Defined in:
- lib/faraday/request/authorization.rb
Overview
Request middleware for the Authorization HTTP header
Constant Summary collapse
- KEY =
'Authorization'
Instance Attribute Summary
Attributes inherited from Middleware
Instance Method Summary collapse
-
#initialize(app, type, *params) ⇒ Authorization
constructor
A new instance of Authorization.
- #on_request(env) ⇒ Object
Methods inherited from Middleware
Methods included from MiddlewareRegistry
#lookup_middleware, #register_middleware, #registered_middleware, #unregister_middleware
Constructor Details
#initialize(app, type, *params) ⇒ Authorization
Returns a new instance of Authorization.
16 17 18 19 20 |
# File 'lib/faraday/request/authorization.rb', line 16 def initialize(app, type, *params) @type = type @params = params super(app) end |