kore/examples/headers/README.md

14 lines
250 B
Markdown
Raw Normal View History

2014-08-04 20:06:59 +02:00
Example on how to read HTTP request headers and set your own custom ones.
Run:
```
2017-03-06 11:00:53 +01:00
# kodev run
2014-08-04 20:06:59 +02:00
```
Test:
```
# curl -H "X-Custom-Header: testing" -i -k https://127.0.0.1:8888
```
If X-Custom-Header is given, it will be mirrored in the response.