summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2022-01-18 14:17:35 -0500
committerGitHub <noreply@github.com>2022-01-18 12:17:35 -0700
commitbcb7a19cd3fbc680a017bc2f5aafa71ff77e87e3 (patch)
tree52af9209510cafc0fff34ff376c4c05b1712d913 /caddytest
parent6e6ce2be6be004f592978d9f020f0185b40af1a7 (diff)
rewrite: Add `method` Caddyfile directive (#4528)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/method_directive.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/method_directive.txt b/caddytest/integration/caddyfile_adapt/method_directive.txt
new file mode 100644
index 0000000..786df90
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/method_directive.txt
@@ -0,0 +1,27 @@
+:8080 {
+ method FOO
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":8080"
+ ],
+ "routes": [
+ {
+ "handle": [
+ {
+ "handler": "rewrite",
+ "method": "FOO"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+} \ No newline at end of file