| 1 |
example.com |
| 2 |
|
| 3 |
import testdata/import_respond.txt Groot Rocket |
| 4 |
import testdata/import_respond.txt you "the confused man" |
| 5 |
---------- |
| 6 |
{ |
| 7 |
"apps": { |
| 8 |
"http": { |
| 9 |
"servers": { |
| 10 |
"srv0": { |
| 11 |
"listen": [ |
| 12 |
":443" |
| 13 |
], |
| 14 |
"routes": [ |
| 15 |
{ |
| 16 |
"match": [ |
| 17 |
{ |
| 18 |
"host": [ |
| 19 |
"example.com" |
| 20 |
] |
| 21 |
} |
| 22 |
], |
| 23 |
"handle": [ |
| 24 |
{ |
| 25 |
"handler": "subroute", |
| 26 |
"routes": [ |
| 27 |
{ |
| 28 |
"handle": [ |
| 29 |
{ |
| 30 |
"body": "'I am Groot', hears Rocket", |
| 31 |
"handler": "static_response" |
| 32 |
}, |
| 33 |
{ |
| 34 |
"body": "'I am you', hears the confused man", |
| 35 |
"handler": "static_response" |
| 36 |
} |
| 37 |
] |
| 38 |
} |
| 39 |
] |
| 40 |
} |
| 41 |
], |
| 42 |
"terminal": true |
| 43 |
} |
| 44 |
] |
| 45 |
} |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
} |