Ewe Examples#
This directory contains practical examples demonstrating various features of ewe.
To run an example, use the following command:
gleam run -m <example name>
For example, to run the getting started example:
gleam run -m getting_started
Examples#
Here is a list of all the examples:
- getting_started - Basic HTTP server with "Hello, World!" response
- sending_response - Different response body types (text, binary, empty)
- reading_body - Reading and echoing request bodies with size limits
- streaming_body - Streaming large request/response bodies in chunks
- serving_files - Serving static files from disk
- websocket - WebSocket connections with topic-based pubsub
- sse - Server-Sent Events for real-time server-to-client updates