Sha256: 64e5b4e515df59cb8f5ace876d51545863067e38880bc2136912509bccf19626

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module Sparrow
  class RequestHttpMessage < HttpMessage
    ##
    # @return [Hash] The HTTP Headers
    def headers_hash
      env
    end

    ##
    # @return [String] the request's path
    def path
      request.path || super
    end

    ##
    # The HTTP Content Type Field
    # @return [String] the HTTP Content Type
    def content_type
      request.content_type || super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cp-sparrow-0.0.14 lib/sparrow/request_http_message.rb