v0.3.0 · Interface
types
This interface defines all of the types and methods for implementing HTTP Requests and Responses, as well as their headers, trailers, and bodies.
Variants
V
method
VThis type corresponds to HTTP standard Methods.
scheme
VThis type corresponds to HTTP standard Related Schemes.
error-code
VThese cases are inspired by the IANA HTTP Proxy Error Types:
header-error
VThis type enumerates the different kinds of errors that may occur when
request-options-error
This type enumerates the different kinds of errors that may occur when
Type Aliases
T
duration
TA duration of time, in nanoseconds.
field-name
TField names are always strings.
field-value
TField values should always be ASCII strings. However, in
headers
THeaders is an alias for Fields.
trailers
TTrailers is an alias for Fields.
status-code
This type corresponds to the HTTP standard Status Code.