| 1 |
:80 |
| 2 |
|
| 3 |
push * /foo.txt |
| 4 |
|
| 5 |
push { |
| 6 |
GET /foo.txt |
| 7 |
} |
| 8 |
|
| 9 |
push { |
| 10 |
GET /foo.txt |
| 11 |
HEAD /foo.txt |
| 12 |
} |
| 13 |
|
| 14 |
push { |
| 15 |
headers { |
| 16 |
Foo bar |
| 17 |
} |
| 18 |
} |
| 19 |
---------- |
| 20 |
{ |
| 21 |
"apps": { |
| 22 |
"http": { |
| 23 |
"servers": { |
| 24 |
"srv0": { |
| 25 |
"listen": [ |
| 26 |
":80" |
| 27 |
], |
| 28 |
"routes": [ |
| 29 |
{ |
| 30 |
"handle": [ |
| 31 |
{ |
| 32 |
"handler": "push", |
| 33 |
"resources": [ |
| 34 |
{ |
| 35 |
"target": "/foo.txt" |
| 36 |
} |
| 37 |
] |
| 38 |
}, |
| 39 |
{ |
| 40 |
"handler": "push", |
| 41 |
"resources": [ |
| 42 |
{ |
| 43 |
"method": "GET", |
| 44 |
"target": "/foo.txt" |
| 45 |
} |
| 46 |
] |
| 47 |
}, |
| 48 |
{ |
| 49 |
"handler": "push", |
| 50 |
"resources": [ |
| 51 |
{ |
| 52 |
"method": "GET", |
| 53 |
"target": "/foo.txt" |
| 54 |
}, |
| 55 |
{ |
| 56 |
"method": "HEAD", |
| 57 |
"target": "/foo.txt" |
| 58 |
} |
| 59 |
] |
| 60 |
}, |
| 61 |
{ |
| 62 |
"handler": "push", |
| 63 |
"headers": { |
| 64 |
"set": { |
| 65 |
"Foo": [ |
| 66 |
"bar" |
| 67 |
] |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
] |
| 72 |
} |
| 73 |
] |
| 74 |
} |
| 75 |
} |
| 76 |
} |
| 77 |
} |
| 78 |
} |