Marten::HTTP::Headers
Inherits Enumerable / Reference / Object
Represents a set of HTTP headers extracted from an HTTP request.
Constructors
new(headers : ::HTTP::Headers)
Sourcenew
SourceInstance methods
Returns the first value associated with the passed header name or nil if the header is not present.
Deletes a specific header and return its value, or nil if the header does not exist.
Returns the value of the specified header name or fallback to the provided default value ( which is nilby
default).
Returns the value of the specified header name or calls the block with the name when not found.