Class: Chase::Request

Inherits:
Object
  • Object
show all
Includes:
Events
Defined in:
lib/chase/request.rb

Overview

HTTP Request Class

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Events

#emit, #on

Constructor Details

#initializeRequest

Returns a new instance of Request.



8
9
10
# File 'lib/chase/request.rb', line 8

def initialize()
  @env = {}
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



6
7
8
# File 'lib/chase/request.rb', line 6

def env
  @env
end

Instance Method Details

#headersObject



12
13
14
# File 'lib/chase/request.rb', line 12

def headers
  @headers ||= {}
end