pub fn full(bytes: impl Into<Bytes>) -> BodyExpand 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.