summaryrefslogtreecommitdiff
path: root/examples/headers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/headers.sh')
-rwxr-xr-xexamples/headers.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/headers.sh b/examples/headers.sh
new file mode 100755
index 0000000..32c7a53
--- /dev/null
+++ b/examples/headers.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# print headers that will be returned
+printf "Content-Type: text/plain\n"
+printf "aaaaaaaa: AAAAAAAAAA\n"
+printf "\n"
+
+printf "joe\n"
+
+# return http code 200
+exit 200