Class: HTTPcap::HTTPFlow
- Inherits:
-
Object
- Object
- HTTPcap::HTTPFlow
- Defined in:
- lib/httpcap/http_flow.rb
Overview
Combining request and response
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ HTTPFlow
constructor
A new instance of HTTPFlow.
Constructor Details
#initialize(request, response) ⇒ HTTPFlow
Returns a new instance of HTTPFlow.
10 11 12 13 |
# File 'lib/httpcap/http_flow.rb', line 10 def initialize(request, response) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/httpcap/http_flow.rb', line 6 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/httpcap/http_flow.rb', line 6 def response @response end |