[−][src]Function gotham::helpers::http::response::create_empty_response
pub fn create_empty_response(
state: &State,
status: StatusCode
) -> Response<Body>
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) }