summaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/shorthand_parameterized_placeholders.caddyfiletest19
1 files changed, 19 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/shorthand_parameterized_placeholders.caddyfiletest b/caddytest/integration/caddyfile_adapt/shorthand_parameterized_placeholders.caddyfiletest
index d5c35b3c3..30bc2c128 100644
--- a/caddytest/integration/caddyfile_adapt/shorthand_parameterized_placeholders.caddyfiletest
+++ b/caddytest/integration/caddyfile_adapt/shorthand_parameterized_placeholders.caddyfiletest
@@ -1,5 +1,9 @@
localhost:80
+
respond * "{header.content-type} {labels.0} {query.p} {path.0} {re.name.0}"
+
+@match path_regexp ^/foo(.*)$
+respond @match "{re.1}"
----------
{
"apps": {
@@ -25,6 +29,21 @@ respond * "{header.content-type} {labels.0} {query.p} {path.0} {re.name.0}"
{
"handle": [
{
+ "body": "{http.regexp.1}",
+ "handler": "static_response"
+ }
+ ],
+ "match": [
+ {
+ "path_regexp": {
+ "pattern": "^/foo(.*)$"
+ }
+ }
+ ]
+ },
+ {
+ "handle": [
+ {
"body": "{http.request.header.content-type} {http.request.host.labels.0} {http.request.uri.query.p} {http.request.uri.path.0} {http.regexp.name.0}",
"handler": "static_response"
}