diff options
author | Francis Lavoie <lavofr@gmail.com> | 2023-02-25 19:34:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-26 00:34:27 +0000 |
commit | 960150bb034dc9a549ee7289b1a4eb4abafeb30a (patch) | |
tree | a3608546db0b154a75afc3dae2d52d44b92ceac9 /caddytest/integration/caddyfile_adapt/heredoc.txt | |
parent | 9e6919550be5689628d0020ec14e90ea6f527716 (diff) |
caddyfile: Implement heredoc support (#5385)
Diffstat (limited to 'caddytest/integration/caddyfile_adapt/heredoc.txt')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/heredoc.txt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/heredoc.txt b/caddytest/integration/caddyfile_adapt/heredoc.txt new file mode 100644 index 0000000..15f8aef --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/heredoc.txt @@ -0,0 +1,50 @@ +example.com { + respond <<EOF + <html> + <head><title>Foo</title> + <body>Foo</body> + </html> + EOF 200 +} +---------- +{ + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":443" + ], + "routes": [ + { + "match": [ + { + "host": [ + "example.com" + ] + } + ], + "handle": [ + { + "handler": "subroute", + "routes": [ + { + "handle": [ + { + "body": "\u003chtml\u003e\n \u003chead\u003e\u003ctitle\u003eFoo\u003c/title\u003e\n \u003cbody\u003eFoo\u003c/body\u003e\n\u003c/html\u003e\n", + "handler": "static_response", + "status_code": 200 + } + ] + } + ] + } + ], + "terminal": true + } + ] + } + } + } + } +}
\ No newline at end of file |