Method: Newpack::HttpContext#initialize

Defined in:
lib/newpack/http/http_context.rb

#initialize(request, response) ⇒ HttpContext

The constructor. response.

Parameters:

  • An (HttpRequest)

    HttpRequest object representing the HTTP request.

  • An (HttpResponse)

    HttpResponse object representing the HTTP



15
16
17
18
# File 'lib/newpack/http/http_context.rb', line 15

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