This directory contains examples of using the maker_web library. Each example is a local function.
File: hello_world.rs
A minimal HTTP server that returns "Hello, world!" for all requests.
File: multilingual_greeting.rs
A simple HTTP server that returns "Hello World!" in different languages depending on the first segment of the URL path.
File: request_counter.rs
A simple HTTP server that counts connection requests. Each connection has its own counter.
File: echo.rs
A simple HTTP echo server that returns the url and request body in JSON format.
File: request_inspector.rs
A debug HTTP server that shows detailed information about incoming requests. Returns method, path, headers (if present), and body as JSON
Check the API documentation for complete reference.