tiny_http is, well, a tiny crate to create web applications.
In this series of articles we are going to see how to use it to build a simple web application.
- Hello World - set Content-type to
text/html.Server,http,incoming_requests,Response,HeaderField,Header,AsciiString - Generate dynamic response, show the current time.
chrono,UTC,Local,date,time,HTML - Echo using GET request - parse the
QUERY_STRING.,GET,url,query_pairs,parse - Path based routing.
path,match - Setting status to 404 page not found.
with_status_code,with_header,path. - Tiny HTTP redirect URL.
with_header,Header,HeaderField,Request,Response.