Module server

Source
Expand description

The server-side abstraction for multipart requests. Enabled with the server feature (on by default).

Use this when you are implementing an HTTP server and want to to accept, parse, and serve HTTP multipart/form-data requests (file uploads).

See the Multipart struct for more info.

Structs§

Field
A single field in a multipart stream.
FieldData
The data of a field in a multipart stream, as a stream of chunks.
FieldHeaders
The headers of a Field, including the name, filename, and Content-Type, if provided.
Multipart
The server-side implementation of multipart/form-data requests.
ReadTextField
A Future which attempts to read a field’s data to a string.
TextField
The result of reading a Field to text.

Traits§

BodyChunk
The operations required from a body stream’s Item type.
StreamError
The operations required from a body stream’s Error type.