pub struct HandlerResponse {
pub data: Vec<u8>,
pub close: bool,
pub post_send: Option<Box<dyn FnOnce() + Send + Sync>>,
}
Available on Unix only.
Fields§
§data: Vec<u8>
The response body.
close: bool
If the communication should be closed.
post_send: Option<Box<dyn FnOnce() + Send + Sync>>
A function to run after sending the response.