2020-11-20 22:38:16 +03:00
|
|
|
:80 {
|
|
|
|
header Denis "Ritchie"
|
|
|
|
header +Edsger "Dijkstra"
|
|
|
|
header ?John "von Neumann"
|
|
|
|
header -Wolfram
|
|
|
|
header {
|
2021-01-20 00:21:11 +03:00
|
|
|
Grace: "Hopper" # some users habitually suffix field names with a colon
|
2020-11-20 22:38:16 +03:00
|
|
|
+Ray "Solomonoff"
|
|
|
|
?Tim "Berners-Lee"
|
|
|
|
defer
|
|
|
|
}
|
2020-11-30 20:20:30 +03:00
|
|
|
@images path /images/*
|
|
|
|
header @images {
|
|
|
|
Cache-Control "public, max-age=3600, stale-while-revalidate=86400"
|
|
|
|
}
|
2022-01-04 20:10:11 +03:00
|
|
|
header {
|
|
|
|
+Link "Foo"
|
|
|
|
+Link "Bar"
|
|
|
|
}
|
2020-11-20 22:38:16 +03:00
|
|
|
}
|
|
|
|
----------
|
|
|
|
{
|
|
|
|
"apps": {
|
|
|
|
"http": {
|
|
|
|
"servers": {
|
|
|
|
"srv0": {
|
|
|
|
"listen": [
|
|
|
|
":80"
|
|
|
|
],
|
|
|
|
"routes": [
|
2020-11-30 20:20:30 +03:00
|
|
|
{
|
|
|
|
"match": [
|
|
|
|
{
|
|
|
|
"path": [
|
|
|
|
"/images/*"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"handle": [
|
|
|
|
{
|
|
|
|
"handler": "headers",
|
|
|
|
"response": {
|
|
|
|
"set": {
|
|
|
|
"Cache-Control": [
|
|
|
|
"public, max-age=3600, stale-while-revalidate=86400"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-11-20 22:38:16 +03:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2022-01-04 20:10:11 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"handler": "headers",
|
|
|
|
"response": {
|
|
|
|
"add": {
|
|
|
|
"Link": [
|
|
|
|
"Foo",
|
|
|
|
"Bar"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2020-11-20 22:38:16 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|