diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt')
-rw-r--r-- | web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt b/web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt deleted file mode 100644 index 415c8afae..000000000 --- a/web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt +++ /dev/null @@ -1,44 +0,0 @@ -? my $ctx = $main::context; -? $_mt->wrapper_file("wrapper.mt", "Configure", "Throttle Response Directives")->(sub { - -<p> -The throttle response handler performs per response traffic throttling, when an <code>X-Traffic</code> header exists in the response headers. -</p> -<p> -The value of <code>X-Traffic</code> header should be an integer that represents the speed you want in bytes per second. This header CAN be set with <a href="configure/headers_directives.html#header.add"><code>header.add</code></a> so that traffic for static assets can also be easily throttled. -</p> -<p> -The following are the configuration directives recognized by the handler. -</p> - -<? -$ctx->{directive}->( - name => "throttle-response", - levels => [ qw(global host path extension) ], - default => "throttle-response: OFF", - since => '2.1', - desc => <<'EOT', -Enables traffic throttle per HTTP response. -EOT -)->(sub { -?> -<p> -If the argument is <code>ON</code>, the traffic per response is throttled as long as a legal <code>X-Traffic</code> header exists. -If the argument is <code>OFF</code>, traffic throttle per response is disabled. -</p> -<?= $ctx->{example}->('Enabling traffic throttle per response with static file configuration', <<'EOT') -# enable throttle -throttle-response: ON - -# an example host configuration that throttle traffic to ~100KB/s -hosts: - default: - paths: - /: - file.dir: /path/to/assets - header.add: "X-Traffic: 100000" -EOT -?> -? }) - -? }) |