Expand description
HTTP body utilities.
This module provides body handling utilities for HTTP 1.x using the
http-body and http-body-util crates.
Functions§
- boxed
- Convert an HTTP body implementing [
http_body::Body] into aBoxBody. - boxed_
sync - Convert an HTTP body implementing [
http_body::Body] into aBoxBodySync. - empty
- Create an empty body.
- empty_
sync - Create an empty sync body.
- from_
bytes - Create a body from bytes.
- 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§
- BoxBody
- The primary body type returned by the generated
smithy-rsservice. - BoxBody
Sync - A thread-safe body type for operations that require
Sync.