From 5da14042f70711ea5cf66e034699730335462f66 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 14:08:03 +0200 Subject: Merging upstream version 1.45.3+dfsg. Signed-off-by: Daniel Baumann --- .../configure/throttle_response_directives.mt | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt (limited to 'web/server/h2o/libh2o/srcdoc/configure/throttle_response_directives.mt') 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 { - -

-The throttle response handler performs per response traffic throttling, when an X-Traffic header exists in the response headers. -

-

-The value of X-Traffic header should be an integer that represents the speed you want in bytes per second. This header CAN be set with header.add so that traffic for static assets can also be easily throttled. -

-

-The following are the configuration directives recognized by the handler. -

- -{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 { -?> -

-If the argument is ON, the traffic per response is throttled as long as a legal X-Traffic header exists. -If the argument is OFF, traffic throttle per response is disabled. -

-{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 -?> -? }) - -? }) -- cgit v1.2.3