class Sparrow::RequestHttpMessage
Public Instance Methods
content_type()
click to toggle source
The HTTP Content Type Field @return [String] the HTTP Content Type
Calls superclass method
Sparrow::HttpMessage#content_type
# File lib/sparrow/request_http_message.rb, line 18 def content_type request.content_type.presence || super end
headers_hash()
click to toggle source
@return [Hash] The HTTP Headers
# File lib/sparrow/request_http_message.rb, line 5 def headers_hash env end
path()
click to toggle source
@return [String] the request's path
Calls superclass method
Sparrow::HttpMessage#path
# File lib/sparrow/request_http_message.rb, line 11 def path request.path || super end