Class: Sparrow::RequestHttpMessage
- Inherits:
-
HttpMessage
- Object
- HttpMessage
- Sparrow::RequestHttpMessage
- Defined in:
- lib/sparrow/request_http_message.rb
Constant Summary
Constants inherited from HttpMessage
HttpMessage::FORM_HASH_KEY, HttpMessage::RACK_INPUT_KEY
Instance Attribute Summary
Attributes inherited from HttpMessage
Instance Method Summary collapse
-
#content_type ⇒ String
The HTTP Content Type Field.
-
#headers_hash ⇒ Hash
The HTTP Headers.
-
#path ⇒ String
The request’s path.
Methods inherited from HttpMessage
#accept, #form_hash?, #initialize, #method_missing, #request
Constructor Details
This class inherits a constructor from Sparrow::HttpMessage
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sparrow::HttpMessage
Instance Method Details
#content_type ⇒ String
The HTTP Content Type Field
18 19 20 |
# File 'lib/sparrow/request_http_message.rb', line 18 def content_type request.content_type.presence || super end |
#headers_hash ⇒ Hash
Returns The HTTP Headers.
5 6 7 |
# File 'lib/sparrow/request_http_message.rb', line 5 def headers_hash env end |
#path ⇒ String
Returns the request’s path.
11 12 13 |
# File 'lib/sparrow/request_http_message.rb', line 11 def path request.path || super end |