[−][src]Function gotham::state::request_id::request_id
pub fn request_id(state: &State) -> &str
Returns the request ID associated with the current request.
This is typically used for logging and correlating events that occurred within a request.
Panics
Will panic if State
does not contain a request ID, which is an invalid state. The request ID
should always be populated by Gotham before a Router
is invoked.