Default handler

For cases where there is no path or method pair matched for the request, we can add a default handler. Our microservice returns a 404 error for all unknown requests. Add this to the router! macro call:

_ => {
Response::empty_404()
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.139.169