Function kvarn_utils::get_body_length_response
source · [−]Expand description
Gets the body length of a response
.
If method
is Some
and method_has_response_body
returns false, 0
is
returned. If the method_has_request_body
or method
is None
,
the content-length
header is checked. 0
is otherwise returned.