Class: HTTP::Feature
- Inherits:
-
Object
- Object
- HTTP::Feature
- Defined in:
- lib/http/feature.rb
Direct Known Subclasses
HTTP::Features::AutoDeflate, HTTP::Features::AutoInflate, HTTP::Features::Logging
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Feature
constructor
rubocop:disable Style/OptionHash.
- #wrap_request(request) ⇒ Object
- #wrap_response(response) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Feature
rubocop:disable Style/OptionHash
5 6 7 |
# File 'lib/http/feature.rb', line 5 def initialize(opts = {}) # rubocop:disable Style/OptionHash @opts = opts end |
Instance Method Details
#wrap_request(request) ⇒ Object
9 10 11 |
# File 'lib/http/feature.rb', line 9 def wrap_request(request) request end |
#wrap_response(response) ⇒ Object
13 14 15 |
# File 'lib/http/feature.rb', line 13 def wrap_response(response) response end |