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.
- Field
Data - The data of a field in a multipart stream, as a stream of chunks.
- Field
Headers - The headers of a
Field
, including the name, filename, andContent-Type
, if provided. - Multipart
- The server-side implementation of
multipart/form-data
requests. - Read
Text Field - A
Future
which attempts to read a field’s data to a string. - Text
Field - The result of reading a
Field
to text.
Traits§
- Body
Chunk - The operations required from a body stream’s
Item
type. - Stream
Error - The operations required from a body stream’s
Error
type.