summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-05-23 21:23:24 +0200
committerGitHub <noreply@github.com>2024-05-23 21:23:24 +0200
commit3e69d8bbe01b7d03c894e21ac322974799098676 (patch)
tree75ad19124b91c3e29142b40660a839c2fa17f8f9 /interface-definitions/include
parent5678e37fd0b37b266330cf2d1fde79071a96bf2b (diff)
parente1450096b4c667a4c33a3fcd8f67ebf6a39d441d (diff)
downloadvyos-1x-3e69d8bbe01b7d03c894e21ac322974799098676.tar.gz
vyos-1x-3e69d8bbe01b7d03c894e21ac322974799098676.zip
Merge pull request #3487 from Embezzle/T6370
reverse-proxy: T6370: Set custom HTTP headers in reverse-proxy responses
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/haproxy/http-response-headers.xml.i29
1 files changed, 29 insertions, 0 deletions
diff --git a/interface-definitions/include/haproxy/http-response-headers.xml.i b/interface-definitions/include/haproxy/http-response-headers.xml.i
new file mode 100644
index 000000000..9e7ddfd28
--- /dev/null
+++ b/interface-definitions/include/haproxy/http-response-headers.xml.i
@@ -0,0 +1,29 @@
+<!-- include start from haproxy/http-response-headers.xml.i -->
+<tagNode name="http-response-headers">
+ <properties>
+ <help>Headers to include in HTTP response</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>HTTP header name</description>
+ </valueHelp>
+ <constraint>
+ <regex>[-a-zA-Z]+</regex>
+ </constraint>
+ <constraintErrorMessage>Header names must only include alphabetical characters and hyphens</constraintErrorMessage>
+ </properties>
+ <children>
+ <leafNode name="value">
+ <properties>
+ <help>HTTP header value</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>HTTP header value</description>
+ </valueHelp>
+ <constraint>
+ <regex>[[:ascii:]]{1,256}</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+</tagNode>
+<!-- include end -->