Skip to main content

decode_response

Function decode_response 

Source
pub fn decode_response(
    status: u16,
    method: &str,
    headers: &Headers,
    text: &str,
) -> Option<LinoValue>
Expand description

Decode a response body according to its own Content-Type (section 10).

A body this client cannot decode is left to the caller as text rather than reported as an error, because a service may legitimately answer with a representation the client never asked for.