mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
14 lines
250 B
Markdown
14 lines
250 B
Markdown
Example on how to read HTTP request headers and set your own custom ones.
|
|
|
|
Run:
|
|
```
|
|
# kodev run
|
|
```
|
|
|
|
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.
|