|
|
@ -93,8 +93,7 @@ pub fn create_response_with_body<T>( |
|
|
|
Ok(create_parts(request)?.body(generate_body())?) |
|
|
|
Ok(create_parts(request)?.body(generate_body())?) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Assumes that this is a valid response
|
|
|
|
/// Write response to the stream `w`.
|
|
|
|
#[allow(missing_docs)] |
|
|
|
|
|
|
|
pub fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> { |
|
|
|
pub fn write_response<T>(mut w: impl io::Write, response: &HttpResponse<T>) -> Result<()> { |
|
|
|
writeln!( |
|
|
|
writeln!( |
|
|
|
w, |
|
|
|
w, |
|
|
|