Skip to main content

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.

Structs§

RequestBody
A request body on the schema-routing pipeline.

Traits§

HttpBody
Trait representing a streaming body of a Request or Response.

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.
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-rs service.
BoxBodySync
A thread-safe body type for operations that require Sync.