pub fn from_method_response(rp: MethodResponse) -> HttpResponseExpand description
Create a response from a method response.
A streamed response is sent in parts as they are produced. If it fails after it started, the body ends with an error, so hyper aborts the response instead of completing it with truncated JSON.