Function rama::http::io::write_http_request

pub async fn write_http_request<W, B>(
    w: &mut W,
    req: Request<B>,
    write_headers: bool,
    write_body: bool,
) -> Result<Request<Body>, Box<dyn Error + Send + Sync>>
where W: AsyncWrite + Unpin + Send + Sync + 'static, B: Body<Data = Bytes> + Send + Sync + 'static, <B as Body>::Error: Into<Box<dyn Error + Send + Sync>>,
Expand description

Write an HTTP request to a writer in std http format.