Package-level declarations
Types
See https://www.rfc-editor.org/rfc/rfc9110.html#name-accept
BodyMode represents a choice between working lazily with streams or eagerly storing the body contents in memory.
See https://www.iana.org/assignments/http-parameters/http-parameters.xhtml#content-coding
HttpMessages are designed to be immutable, so any mutation methods return a modified copy of the message.
Represents a body that is backed by an in-memory ByteBuffer. Closing this has no effect.
A weighted list of content ranges of type T.
In-memory RequestContext store. Override the storeId to use multiple stores in one app.
A SimpleRange is either a value of some type, T, or a wildcard, represented in headers as "*", and matching any value of T. The value is constrained to being represented in HTTP headers by a single token, with no parameters.
Represents a body that is backed by a (lazy) InputStream. Operating with StreamBody has a number of potential gotchas:
Functions
Parses a PriorityList from a header value.
This function works around input streams which report that there is nothing to read when they have never been accessed.
Selects the client's preferred option from a set of options offered by the server, when the range is a SimpleRange
Selects the client's preferred option from a set of options offered by the server, matching a priority list against the id of the options.
Constructs a PriorityList from a fixed set of weighted ranges and ensures it is sorted by descending weight.