pub type FullBody<T> = Full<T>;Available on crate feature
wasip3-unstable only.Expand description
A body type representing a complete, in-memory payload.
This is a convenience alias for http_body_util::Full<T>, used when the
entire body is already available as a single value of type T.
It is typically used for sending small or pre-buffered request or response bodies without the need for streaming.
§Examples
ⓘ
use spin_wasip3_http::FullBody;
use bytes::Bytes;
let body = FullBody::new(Bytes::from("hello"));
let request = http::Request::builder()
.method("POST")
.uri("https://example.com")
.body(body)
.unwrap();Aliased Type§
pub struct FullBody<T> { /* private fields */ }