pub fn handler(state: State) -> (State, Response) {
    let mut res = create_response(&state, StatusCode::Ok, None);
    {
        let headers = res.headers_mut();
        headers.set(GothamHeader("Hello World!".to_owned()));
    };

    (state, res)
}
/// Create a `Handler` that adds a custom header.
Create a `Handler` that adds a custom header.
Create a ` Handler ` that adds a custom header .
pub fn handler(state: State) -> (State, Response) {
    let mut res = create_response(&state, StatusCode::Ok, None);
    {
        let headers = res.headers_mut();
        headers.set(GothamHeader("Hello World!".to_owned()));
    };
    (state, res)
}
pub fn handler ( state : State ) -> ( State , Response ) { let mut res = create_response ( & state , StatusCode :: Ok , None ) ; { let headers = res . headers_mut ( ) ; headers . set ( GothamHeader ( " " . to_owned ( ) ) ) ; } ; ( state , res ) }
Create a `Handler` that adds a custom header.
Create a ` Handler ` that adds a custom header .
state
State
state
State