Module http

Module http 

Source
Expand description

HTTP parsing, connection handling, client and server.

Modules§

chunked
Chunked transfer coding.
field
Header field values parsers.

Structs§

BodyReader
Reader for a message body.
BodyWriter
Writer for a message body.
MessageReader
HTTP request and response reader.
MessageWriter
HTTP request and response writer.
RequestHeader
Represents the complete HTTP request header.
RequestLine
Represents a start line for a request.
ResponseHeader
Represents the complete HTTP response header.
StatusLine
Represents a start line for a response.

Enums§

ChunkedEncodingOption
Specifies the use of chunked transfer coding.
CompressionOption
Specifies what compression method to use.
HTTPError
Errors during HTTP parsing, formatting, or processing protocol state.
RequestTarget
Represents the types of RFC7230 request-target.
ZeroNineOption
Specifies the use of HTTP/0.9 responses.

Constants§

DEFAULT_VERSION
Default HTTP version.

Functions§

url_to_request_target
Returns a request target for the given URL.

Type Aliases§

Version
HTTP version in major decimal minor format.