From 77e50caaf2ef81cd91075cf836fed0e75718ffb4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 23:12:02 +0200 Subject: Adding debian version 1.8.3-2. Signed-off-by: Daniel Baumann --- .../srcdoc/configure/headers_directives.mt | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 debian/vendor-h2o/srcdoc/configure/headers_directives.mt (limited to 'debian/vendor-h2o/srcdoc/configure/headers_directives.mt') diff --git a/debian/vendor-h2o/srcdoc/configure/headers_directives.mt b/debian/vendor-h2o/srcdoc/configure/headers_directives.mt new file mode 100644 index 0000000..6c2af07 --- /dev/null +++ b/debian/vendor-h2o/srcdoc/configure/headers_directives.mt @@ -0,0 +1,84 @@ +? my $ctx = $main::context; +? $_mt->wrapper_file("wrapper.mt", "Configure", "Headers Directives")->(sub { + +

+This document describes the configuration directives of the headers handler. +

+ +{directive}->( + name => "header.add", + levels => [ qw(global host path extension) ], + desc => q{Adds a new header line to the response headers, regardless if a header with the same name already exists.}, +)->(sub { +?> +
+
Example. Setting the Set-Cookie header
+
header.add: "Set-Cookie: test=1"
+
+? }) + +{directive}->( + name => "header.append", + levels => [ qw(global host path extension) ], + desc => <<'EOT', +Adds a new header line, or appends the value to the existing header with the same name, separated by ,. +EOT +)->(sub {}); +?> + +{directive}->( + name => "header.merge", + levels => [ qw(global host path extension) ], + desc => <<'EOT', +Adds a new header line, or merges the value to the existing header of comma-separated values. +EOT +)->(sub { +?> +

+The following example sets the must-revalidate attribute of the Cache-Control header when and only when the attribute is not yet being set. +

+{example}->('Setting the must-revalidate attribute', <<'EOT') +header.merge: "Cache-Control: must-revalidate" +EOT +?> +? }) + +{directive}->( + name => "header.set", + levels => [ qw(global host path extension) ], + desc => q{Sets a header line, removing headers with the same name if exists.}, +)->(sub { +?> +{example}->('Setting the X-Content-Type-Options: nosniff header', <<'EOT') +header.set: "X-Content-Type-Options: nosniff" +EOT +?> +? }) + +{directive}->( + name => "header.setifempty", + levels => [ qw(global host path extension) ], + desc => <<'EOT', +Sets a header line when and only when a header with the same name does not already exist. +EOT +)->(sub {}); + +{directive}->( + name => "header.unset", + levels => [ qw(global host path extension) ], + desc => q{Removes headers with given name.}, +)->(sub { +?> +{example}->('Removing the X-Powered-By header', <<'EOT') +header.unset: "X-Powered-By" +EOT +?> +? }) + +? }) -- cgit v1.2.3