Expand description
HTTP body utilities.
This module provides body handling utilities for HTTP 1.x using the
http-body and http-body-util crates.
Structs§
- Request
Body - A request body on the schema-routing pipeline.
Traits§
- Http
Body - Trait representing a streaming body of a Request or Response.
Functions§
- boxed
- Convert an HTTP body implementing
http_body::Bodyinto aBoxBody. - boxed_
sync - Convert an HTTP body implementing
http_body::Bodyinto aBoxBodySync. - empty
- Create an empty body.
- empty_
sync - Create an empty sync body.
- from_
bytes - Create a body from bytes.
- to_
boxed - Convert bytes or similar types into a
BoxBody. - to_
boxed_ sync - Convert bytes or similar types into a
BoxBodySync. - wrap_
stream - Wrap a stream of byte chunks into a BoxBody.
- wrap_
stream_ sync - Wrap a stream of byte chunks into a BoxBodySync.
Type Aliases§
- Body
- The default request body: the schema pipeline over hyper’s transport body.
- BoxBody
- The primary body type returned by the generated
smithy-rsservice. - BoxBody
Sync - A thread-safe body type for operations that require
Sync.