Expand description
This part of the library is not covered by the semver guarantees. If you use these in your program, a minor version upgrade could break your build.
If you use these items in a published library, your library should depend on a specific version of this library.
Structs
Wraps an AsyncWrite
and records the number of bytes successfully written to it.
A token. If the token came from a TokenSet
, dropping the token puts it back in the set.
A set of tokens. You can get a token from the set. Dropping the token returns it to the set. When the set is empty, you must wait for a token to be returned.
Enums
Struct returned by RequestBody::async_reader
and ResponseBody::async_reader
.
Struct returned by RequestBody::reader
and ResponseBody::reader
.
Traits
Functions
Start a task to accept connections and pass them to stream_handler
.
Copies bytes from reader
to writer
.
Reads blocks from reader
, encodes them in HTTP chunked encoding, and writes them to writer
.
Convert a byte slice into a string. Includes printable ASCII characters as-is. Converts non-printable or non-ASCII characters to strings like “\n” and “\x19”.
Errors
Errors
Errors
Errors
Errors
Errors
Errors
Errors