mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-28 12:45:58 +00:00
rewrite: Add method Caddyfile directive (#4528)
This commit is contained in:
parent
6e6ce2be6b
commit
bcb7a19cd3
3 changed files with 48 additions and 1 deletions
27
caddytest/integration/caddyfile_adapt/method_directive.txt
Normal file
27
caddytest/integration/caddyfile_adapt/method_directive.txt
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
:8080 {
|
||||
method FOO
|
||||
}
|
||||
----------
|
||||
{
|
||||
"apps": {
|
||||
"http": {
|
||||
"servers": {
|
||||
"srv0": {
|
||||
"listen": [
|
||||
":8080"
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"handle": [
|
||||
{
|
||||
"handler": "rewrite",
|
||||
"method": "FOO"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue