# Examples ## Tokio | Example | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------------------ | | [`hello_world`](../examples/hello_world/src/main.rs) | A minimal example showing how to set up a Router | | [`form`](../examples/form/src/main.rs) | GET and POST Methods, and serving File | | [`path_parameters`](../examples/path_parameters/src/main.rs) | Extracing data from path segments | | [`state`](../examples/state/src/main.rs) | Stateful Applications | | [`server_sent_events`](../examples/server_sent_events/src/main.rs) | A long-lived connection generating Server-Sent Events with Keep-Alive messages | | [`web_sockets`](../examples/web_sockets/src/main.rs) | A long-lived connection both sending and receiving WebSocket messages | | [`layers`](../examples/layers/src/main.rs) | Middleware example which logs how long a request took to be handled | ## Embassy on Pico W | Example | Description | | -------------------------------------------------------------------- | --------------------------------------------------------------------- | | [`hello_world_embassy`](../examples/embassy/hello_world/src/main.rs) | A minimal example showing how to set up a Router | | [`web_sockets_embassy`](../examples/embassy/web_sockets/src/main.rs) | A long-lived connection both sending and receiving WebSocket messages |