-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse-proxy: T6370: Set custom HTTP headers in reverse-proxy responses
- Loading branch information
Showing
5 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
interface-definitions/include/haproxy/http-response-headers.xml.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters