Method: Webbed::Request#initialize
- Defined in:
- lib/webbed/request.rb
#initialize(method, request_uri, headers, entity_body, options = {}) ⇒ Request
Creates a new Request.
The method converts the values passed in to their proper types.
45 46 47 48 49 50 51 52 |
# File 'lib/webbed/request.rb', line 45 def initialize(method, request_uri, headers, entity_body, = {}) self.method = method self.request_uri = request_uri self.headers = headers self.entity_body = entity_body self.http_version = [:http_version] || 1.1 self.scheme = [:scheme] || 'http' end |