Module body

Module body 

Source
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 a BoxBody.
boxed_sync
Convert an HTTP body implementing [http_body::Body] into a BoxBodySync.
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-rs service.
BoxBodySync
A thread-safe body type for operations that require Sync.