purescript-httpurple/Documentation/Examples/Headers
2017-07-17 22:31:46 -07:00
..
Main.purs Don't import prelude so explicitly (#37) 2017-07-17 22:31:46 -07:00
Readme.md Add support for reading headers (#34) 2017-07-17 18:51:43 -07: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:

make example EXAMPLE=Headers