summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r--caddytest/integration/caddyfile_adapt/header.txt107
1 files changed, 107 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/header.txt b/caddytest/integration/caddyfile_adapt/header.txt
new file mode 100644
index 0000000..b8e102f
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/header.txt
@@ -0,0 +1,107 @@
+:80 {
+ header Denis "Ritchie"
+ header +Edsger "Dijkstra"
+ header ?John "von Neumann"
+ header -Wolfram
+ header {
+ Grace: "Hopper" # some users habitually suffix field names with a colon
+ +Ray "Solomonoff"
+ ?Tim "Berners-Lee"
+ defer
+ }
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "handler": "headers",
+ "response": {
+ "set": {
+ "Denis": [
+ "Ritchie"
+ ]
+ }
+ }
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "add": {
+ "Edsger": [
+ "Dijkstra"
+ ]
+ }
+ }
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "require": {
+ "headers": {
+ "John": null
+ }
+ },
+ "set": {
+ "John": [
+ "von Neumann"
+ ]
+ }
+ }
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "deferred": true,
+ "delete": [
+ "Wolfram"
+ ]
+ }
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "add": {
+ "Ray": [
+ "Solomonoff"
+ ]
+ },
+ "deferred": true,
+ "set": {
+ "Grace": [
+ "Hopper"
+ ]
+ }
+ }
+ },
+ {
+ "handler": "headers",
+ "response": {
+ "require": {
+ "headers": {
+ "Tim": null
+ }
+ },
+ "set": {
+ "Tim": [
+ "Berners-Lee"
+ ]
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+}