Function body_from_parts

Source
pub fn body_from_parts(
    parts: &mut Parts,
    status_code: StatusCode,
    message: &str,
    headers: Option<Vec<(HeaderName, HeaderValue)>>,
) -> Bytes
Expand description

Construct a response body from Parts, status code, message and headers