Create a server that can respond to HTTP requests.
You write your server using The Elm Architecture by subscribing to request events and responding with commands in update.
See examples/http-server for a working example.
The HTTP server.
Error code and message from node.
Most likely from a failed attempt to start the server (e.g.
Refer to the node docs for details.
HttpServer module and get permission to create a server.
Task to initialize a
An incoming HTTP reqest.
HTTP request methods.
Get request body as a string.
Get request body as json.
Get a string representation of the request.
Good for logging.
Responding to requests
Subscribe to incoming HTTP requests.
See HttpServer.Response for more details on responding to requests.