Class: HTTPcap::HTTPFlow

Inherits:
Object
  • Object
show all
Defined in:
lib/httpcap/http_flow.rb

Overview

Combining request and response

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, response) ⇒ HTTPFlow

Returns a new instance of HTTPFlow.

Parameters:



10
11
12
13
# File 'lib/httpcap/http_flow.rb', line 10

def initialize(request, response)
  @request = request
  @response = response
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



6
7
8
# File 'lib/httpcap/http_flow.rb', line 6

def request
  @request
end

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/httpcap/http_flow.rb', line 6

def response
  @response
end