Function gotham::state::request_id
source · pub fn request_id(state: &State) -> &str
Expand description
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.