Skip to main content

json_response

Function json_response 

Source
pub fn json_response<T: Serialize>(
    value: &T,
) -> Result<Response<Full<Bytes>>, OxiHttpError>
Expand description

Build a JSON response from a serializable value.

Sets the Content-Type header to application/json.