Function hurl::output::write_last_body
source · pub fn write_last_body(
hurl_result: &HurlResult,
include_headers: bool,
color: bool,
filename_out: Option<&Output>,
stdout: &mut Stdout,
stderr: &mut Stderr
) -> Result<(), Error>
Expand description
Writes the hurl_result
last response to the file filename_out
.
If filename_out
is None
, standard output is used. If include_headers
is true, the last
HTTP response headers are written before the body response.