Skip to main content

full

Function full 

Source
pub fn full(bytes: impl Into<Bytes>) -> Body
Expand description

Creates a full body from in-memory bytes.

Replaces hyper::Body::from(x) for byte buffers and strings. Accepts anything that converts into Bytes: String, Vec<u8>, &'static str, &'static [u8], or Bytes directly.