From 0e9bf9ff54275338494750864420750fdd3a84f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Tue, 19 Nov 2019 12:45:17 +0100 Subject: [PATCH] Working with forms example --- doc/working_with_forms.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/working_with_forms.rst diff --git a/doc/working_with_forms.rst b/doc/working_with_forms.rst new file mode 100644 index 0000000..42d15d4 --- /dev/null +++ b/doc/working_with_forms.rst @@ -0,0 +1,15 @@ +Working with Forms +================== + +When a browser submits a form to a server all the values included in the +form are sent to the server in an HTTP call. + +Kapow! handles the form decoding for you, the only thing you need to +know is which *field* or *fields* of the form you want. + +In this example we respond back with the content of the form field `myfield`: + +.. code-block:: bash + + kapow get /request/form/myfield | kapow set /response/body +