Skip to main content

raw_response

Function raw_response 

Source
pub fn raw_response(
    body: &str,
    media_type: &str,
    status_code: u16,
) -> LinoResult
Expand description

A response whose body is already encoded, bypassing negotiation.

Used for representations that are defined by their own media type, such as the OpenAPI document of specification section 9.