org.http4s.headers
Type members
Classlikes
From [https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.3 RFC-7231].
The "Accept-Charset" header field can be sent by a user agent to
indicate what charsets are acceptable in textual response content.
This field allows user agents capable of understanding more
From [https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.3 RFC-7231].
- Companion:
- object
Request header used to indicate which natural language would be preferred for the response to be translated into.
Request header used to indicate which natural language would be preferred for the response to be translated into.
- Companion:
- object
The Access-Control-Max-Age
header.
The Access-Control-Max-Age
header.
- Companion:
- object
Constructs an Age header.
Constructs an Age header.
The value of this field is a positive number of seconds (in decimal) with an estimate of the amount of time since the response
- Value parameters:
- age
age of the response
- Companion:
- object
A Response header that lists the methods that are supported by the target resource. Must be attached to responses with status 405 Not Allowed, though in practice not all servers honor this.
A Response header that lists the methods that are supported by the target resource. Must be attached to responses with status 405 Not Allowed, though in practice not all servers honor this.
- Companion:
- object
Constructs a Content-Length
header.
Constructs a Content-Length
header.
The HTTP RFCs do not specify a maximum length. We have decided that Long.MaxValue
bytes ought to be good enough for anybody in order to avoid the irritations of BigInt
.
- Value parameters:
- length
the length
- Companion:
- object
The "Content-Location" header field references a URI that can be used
as an identifier for a specific resource corresponding to the
representation in this message's payload
- Companion:
- object
A Response header that gives the date/time after which the response is considered stale.
A Response header that gives the date/time after which the response is considered stale.
The HTTP RFCs indicate that Expires should be in the range of now to 1 year in the future. However, it is a usual practice to set it to the past of far in the future Thus any instant is in practice allowed
- Value parameters:
- expirationDate
the date of expiration. The RFC has a warning, that using large values can cause problems due to integer or clock overflows.
- Companion:
- object
A Request header, that provides the host and port information
A Request header, that provides the host and port information
The "Host" header field in a request provides the host and port
information from the target URI, enabling the origin server to
distinguish among resources while servicing requests for multiple
host names on a single IP address.
This header was mandatory in version 1.1 of the Http protocol.
- Companion:
- object
Request header defines request to be idempotent used by client retry middleware.
Request header defines request to be idempotent used by client retry middleware.
- Companion:
- object
Request header to make the request conditional on the current contents of the origin server at the given target resource (URI).
Request header to make the request conditional on the current contents of the origin server at the given target resource (URI).
- Companion:
- object
{{ The "If-Modified-Since" header field makes a GET or HEAD request method conditional on the selected representation's modification date being more recent than the date provided in the field-value. }}
From RFC-7232
The "If-None-Match" header field makes the request method conditional
on a recipient cache or origin server either not having any current
representation of the target resource, when the field-value is "*",
or having a selected representation with an entity-tag that does not
match any of those listed in the field-value.
From RFC-7232
- Companion:
- class
Request header, used with the TRACE and OPTION request methods, that gives an upper bound on how many times the request can be forwarded by a proxy before it is rejected.
Response header, used by the server to indicate to the user-agent how long it has to wait before it can try again with a follow-up request.
Response header, used by the server to indicate to the user-agent how long it has to wait before it can try again with a follow-up request.
- Value parameters:
- retry
Indicates the retry time, either as a date of expiration or as a number of seconds from the current time until that expiration.
- Companion:
- object
Defined by https://datatracker.ietf.org/doc/html/rfc6797
- Companion:
- class
- Companion:
- object