2017-07-17 23:42:13 +00:00
|
|
|
# Headers Example
|
|
|
|
|
2017-07-18 01:51:43 +00:00
|
|
|
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!'.
|
2017-07-17 23:42:13 +00:00
|
|
|
|
|
|
|
To run the example server, run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make example EXAMPLE=Headers
|
|
|
|
```
|