Skip to main content

from_method_response

Function from_method_response 

Source
pub fn from_method_response(rp: MethodResponse) -> HttpResponse
Expand 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.