| 1 |
Example on how to read HTTP request headers and set your own custom ones. |
| 2 |
|
| 3 |
Run: |
| 4 |
``` |
| 5 |
# kodev run |
| 6 |
``` |
| 7 |
|
| 8 |
Test: |
| 9 |
``` |
| 10 |
# curl -H "X-Custom-Header: testing" -i -k https://127.0.0.1:8888 |
| 11 |
``` |
| 12 |
|
| 13 |
If X-Custom-Header is given, it will be mirrored in the response. |