Skip to main content

bytes_response

Function bytes_response 

Source
pub fn bytes_response(
    status: StatusCode,
    body: Bytes,
    content_type: &'static str,
    etag: Option<&str>,
) -> Response<HttpBody>
Expand description

Build a byte response with ETag and Content-Type headers.