Expand description
§try_route
“tries” to match a route and method to a request, also tries to deserialize inputs if the routes and methods check out.
Functions§
- try_
route - attemps to match an inbound route to a route given by a handler it is the runtime version of routing for the app! macro it simply checks if the routes are equal as str if they match it then checks that the methods are the same from there it desererializes data either from json or url encoded based on the method, if all goes well, it returns the deserialized type “T” which is later passed to the handler you write