Building and running

To run a microservice, use the cargo run command. Since we don't have an other microservice for handlers, we can use the counter method to check that the server and Counter middleware works. Try to open http://127.0.0.1:8080/stats/counter in the browser. It will show a 1 value on a blank page. If you refresh the page, you will see a 3 value. That's because the browser also sends a request to get a favicon.ico file after the main request.

..................Content has been hidden....................

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