purescript-httpurple/docs/Examples/Headers
sigma-andex 88169cd299 Separate headers into request and response headers
- Add response header construction using records
- Update tests and examples
- Update doc
2022-06-16 20:06:07 +01:00
..
Main.purs Separate headers into request and response headers 2022-06-16 20:06:07 +01:00
Readme.md Remove some stale doc references to make 2021-11-16 21:50:23 -08:00

Headers Example

This is a basic example of working with headers. It will respond to an HTTP GET on any url and will read the header 'X-Input' and return the contents in the response body. It will also return the 'X-Example' response header with the value 'hello world!'.

To run the example server, run:

nix-shell --run 'example Headers'

Or, without nix:

spago -x test.dhall run --main Examples.Headers.Main