summaryrefslogtreecommitdiff
path: root/interface-definitions/include/haproxy/http-response-headers.xml.i
blob: 9e7ddfd28e45e6ad00c0b23b90c63fef03df9d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 -->