pub trait ResponseHandler {
// Required methods
fn response(&mut self, response: Response<'_>);
fn more_payload(&mut self, payload: Result<Option<&[u8]>, ()>);
}
Expand description
A trait handling responses to an HTTP request.
pub trait ResponseHandler {
// Required methods
fn response(&mut self, response: Response<'_>);
fn more_payload(&mut self, payload: Result<Option<&[u8]>, ()>);
}
A trait handling responses to an HTTP request.