class TrackerHub::Request
Format
and log an incoming request
Constants
- VERSION
Attributes
request[RW]
@return [Hash] request header @api private
response[RW]
@return [Utils::Env] the rack environment object built from the response object @api private
status[RW]
@return [Integer] the request status (can be a Fixnum) @api private
Public Class Methods
new(env, status, headers)
click to toggle source
Instantiate a request tracker object
@param [Utils::Env] env Rack environement object (full response) @param [Integer] status Request
status @param [Hash] headers Request
header
@example
> status, headers, body = @app.call(env) > new_env = Utils::Env.new(env) > TrackerHub::Request.new(new_env, status, headers)
@api private
# File lib/tracker_hub/request.rb, line 39 def initialize(env, status, headers) self.request = headers self.status = status self.response = env end