aboutsummaryrefslogtreecommitdiff
path: root/_examples/headers/test.http
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-01-05 21:21:51 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-01-05 21:21:51 +0300
commitb3c48f806724b82b649c89aa5e0d07a09e414140 (patch)
tree61b5925b2a25c74d1966b757be23168a2663a227 /_examples/headers/test.http
parentd36bd3f0aa6ee962cc1a0d40bfb6a428da4ff93b (diff)
Added interfaces
Diffstat (limited to '_examples/headers/test.http')
-rw-r--r--_examples/headers/test.http24
1 files changed, 24 insertions, 0 deletions
diff --git a/_examples/headers/test.http b/_examples/headers/test.http
new file mode 100644
index 0000000..6efd342
--- /dev/null
+++ b/_examples/headers/test.http
@@ -0,0 +1,24 @@
+### Request JSON:
+http://localhost:3000/hello
+Content-Type: application/json
+
+{
+ "name": "Alex"
+}
+
+### Response:
+# http://localhost:3000/hello
+#
+#{"message":"Hello, Alex!"}
+
+### Request Form:
+http://localhost:3000/hello
+Content-Type: application/x-www-form-urlencoded
+
+name=Alex
+
+### Response:
+# http://localhost:3000/hello
+#
+#{"message":"Hello, Alex!"}
+