Skip to content

Commit

Permalink
Merge pull request #27 from gren-lang/http-server-examples
Browse files Browse the repository at this point in the history
Link to example HttpServer projects in module docs
  • Loading branch information
robinheghan authored Feb 10, 2025
2 parents efacada + 8845353 commit 14ab4e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/HttpServer.gren
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ effect module HttpServer where { subscription = HttpSub } exposing
You write your server using The Elm Architecture by subscribing to request
events and responding with commands in update.
See the [example project](https://github.com/gren-lang/example-projects/blob/main/http-server/src/Main.gren) for what this looks like.
Or the [integration tests](https://github.com/gren-lang/integration-tests/blob/main/http-server/src/Main.gren) for a more robust example with routing and multiple response types.
## Initialization
@docs Permission, Server, ServerError, initialize, createServer
Expand Down

0 comments on commit 14ab4e4

Please sign in to comment.