Class: HTTP::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/http/feature.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Feature

Returns a new instance of Feature.


5
6
7
# File 'lib/http/feature.rb', line 5

def initialize(opts = {})
  @opts = opts
end

Instance Method Details

#on_error(request, error) ⇒ Object


17
# File 'lib/http/feature.rb', line 17

def on_error(request, error); end

#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