Files
kapow/doc/reading_headers.rst
pancho horrillo b130cfdec7 Add some examples
Note that the example on redirecting a URL is BROKEN.  Possibly a bug in Kapow!
2019-11-19 21:52:10 +01:00

14 lines
294 B
ReStructuredText

Reading Headers
===============
The HTTP protocol allows metadata using headers.
Kapow! allows you to read them easily:
In this example, we read the header ``User-Agent`` and feed it
to the response:
.. code-block:: bash
kapow get /request/headers/User-Agent | kapow set /response/body