pub fn create_empty_response(state: &State, status: StatusCode) -> Response<Body>
Expand description
Produces a simple empty Response
with a provided status.
Examples
fn handler(state: State) -> (State, Response<Body>) {
let resp = create_empty_response(&state, StatusCode::NO_CONTENT);
(state, resp)
}