pub fn get_body_length_response<T>(
    response: &Response<T>,
    method: Option<&Method>
) -> usize
Expand description

Gets the body length of a response.

If method is Some and method_has_response_body returns false, 0 is returned. If method is None, the content-length header is checked. 0 is otherwise returned.