kore/examples/headers
Joris Vink f6cd16c567 Replace static/dynamic with a single option: route
Kore will automatically detect if a route is a dynamic or static one
so there is no need for the configuration options to differ anymore.
2019-11-15 08:11:02 +01:00
..
conf Replace static/dynamic with a single option: route 2019-11-15 08:11:02 +01:00
src Rework HTTP and worker processes. 2018-02-14 13:48:49 +01:00
.gitignore Add headers example 2014-08-04 20:06:59 +02:00
README.md kore -> kodev where appropriate 2017-03-06 11:00:53 +01:00

README.md

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.