From bcb7a19cd3fbc680a017bc2f5aafa71ff77e87e3 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Tue, 18 Jan 2022 14:17:35 -0500 Subject: rewrite: Add `method` Caddyfile directive (#4528) --- .../caddyfile_adapt/method_directive.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 caddytest/integration/caddyfile_adapt/method_directive.txt (limited to 'caddytest/integration') 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 -- cgit v1.2.3