Skip to main content

json_response_bytes

Function json_response_bytes 

Source
pub(super) fn json_response_bytes(
    status: StatusCode,
    content_type: &str,
    body: Bytes,
) -> Response<Full<Bytes>>
Expand description

Response with a codec-encoded body.