This is a toy HTTP server that implements:
GET /: Return 200 OkGET /echo/data: Return a 200 Ok response with thedataas its bodyGET /user-agent: Return a 200 Ok response wih the request'sUser-Agentheader valueGET /files/test.txt: Return whethertest.txtexists in the dir of--directory <dir>POST /files/test.txt -d @test.txt: Accept the request body and save it to--directory <dir>
The purpose of this repository is to showcase the various capabilities of the Rust programming language.