You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/root/configuration/http/http_filters/aws_lambda_filter.rst
+4-4
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ is set to ``false``, then the HTTP request is transformed to a JSON payload with
39
39
- ``headers`` are the HTTP request headers. If multiple headers share the same name, their values are
40
40
coalesced into a single comma-separated value.
41
41
- ``query_string_parameters`` are the HTTP request query string parameters. If multiple parameters share the same name,
42
-
the last one wins. That is, parameters are _not_ coalesced into a single value if they share the same key name.
43
-
- ``body`` the body of the HTTP request is base64-encoded by the filter if the ``content-type`` header exists and is _not_ one of the following:
42
+
the last one wins. That is, parameters are **not** coalesced into a single value if they share the same key name.
43
+
- ``body`` the body of the HTTP request is base64-encoded by the filter if the ``content-type`` header exists and is **not** one of the following:
44
44
45
45
- text/*
46
46
- application/json
@@ -66,7 +66,7 @@ On the other end, the response of the Lambda function must conform to the follow
66
66
OK``.
67
67
- The ``headers`` are used as the HTTP response headers.
68
68
- The ``cookies`` are used as ``Set-Cookie`` response headers. Unlike the request headers, cookies are _not_ part of the
69
-
response headers because the ``Set-Cookie`` header cannot contain more than one value per the `RFC`_. Therefore, Each
69
+
response headers because the ``Set-Cookie`` header cannot contain more than one value per the `RFC`_. Therefore, each
70
70
key/value pair in this JSON array will translate to a single ``Set-Cookie`` header.
71
71
- The ``body`` is base64-decoded if it is marked as base64-encoded and sent as the body of the HTTP response.
72
72
@@ -200,4 +200,4 @@ comes from the owning HTTP connection manager.
200
200
:widths: 1, 1, 2
201
201
202
202
server_error, Counter, Total requests that returned invalid JSON response (see :ref:`payload_passthrough <envoy_v3_api_msg_extensions.filters.http.aws_lambda.v3.Config>`)
203
-
upstream_rq_payload_size, Histogram, Size in bytes of the request after JSON-tranformation (if any).
203
+
upstream_rq_payload_size, Histogram, Size in bytes of the request after JSON-transformation (if any).
Copy file name to clipboardExpand all lines: docs/root/configuration/http/http_filters/cache_filter.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -17,14 +17,14 @@ For HTTP Requests:
17
17
18
18
For HTTP Responses:
19
19
20
-
* HTTP Cache only caches responses with enough data to calculate freshness lifetime as per `RFC7234#calculating.freshness.lifetime<https://httpwg.org/specs/rfc7234.html#calculating.freshness.lifetime>`_.
20
+
* HTTP Cache only caches responses with enough data to calculate freshness lifetime as per `RFC7234 <https://httpwg.org/specs/rfc7234.html#calculating.freshness.lifetime>`_.
21
21
* HTTP Cache respects ``Cache-Control`` directive from the upstream host. For example, if HTTP response returns status code 200 with ``Cache-Control: max-age=60`` and no ``vary`` header, it will be cached.
22
22
* HTTP Cache only caches responses with status codes: 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 451, 501.
23
23
24
24
HTTP Cache delegates the actual storage of HTTP responses to implementations of the ``HttpCache`` interface. These implementations can
25
25
cover all points on the spectrum of persistence, performance, and distribution, from local RAM caches to globally distributed
26
26
persistent caches. They can be fully custom caches, or wrappers/adapters around local or remote open-source or proprietary caches.
27
-
Currently the only available cache storage implementation is :ref:`SimpleHTTPCache <envoy_v3_api_msg_extensions.http.cache.simple_http_cache.v3.SimpleHttpCacheConfig>`
27
+
Currently the only available cache storage implementation is :ref:`SimpleHTTPCache <envoy_v3_api_msg_extensions.http.cache.simple_http_cache.v3.SimpleHttpCacheConfig>`.
- Neither *content-length* nor *transfer-encoding* headers are present in
86
-
the response.
87
-
- Response size is smaller than 30 bytes (only applicable when *transfer-encoding*
89
+
- A response does **not** contain a ``content-type`` value that matches one of the selected
90
+
mime-types, which default to:
91
+
92
+
- ``application/javascript``
93
+
- ``application/json``
94
+
- ``application/xhtml+xml``
95
+
- ``image/svg+xml``
96
+
- ``text/css``
97
+
- ``text/html``
98
+
- ``text/plain``
99
+
- ``text/xml``
100
+
101
+
- A response does **not** contain a ``content-length`` or ``transfer-encoding`` headers.
102
+
- Response size is smaller than 30 bytes (only applicable when ``transfer-encoding``
88
103
is not chunked).
89
104
90
105
Please note that in case the filter is configured to use a compression library extension
91
-
other than gzip it looks for content encoding in the *accept-encoding* header provided by
106
+
other than gzip it looks for content encoding in the ``accept-encoding`` header provided by
92
107
the extension.
93
108
94
109
When response compression is *applied*:
95
110
96
-
- The *content-length* is removed from response headers.
97
-
- Response headers contain "*transfer-encoding: chunked*", and
98
-
"*content-encoding*" with the compression scheme used (e.g., ``gzip``).
99
-
- The "*vary: accept-encoding*" header is inserted on every response.
111
+
- The ``content-length`` is removed from response headers.
112
+
- Response headers contain ``transfer-encoding: chunked``, and
113
+
``content-encoding`` with the compression scheme used (e.g., ``gzip``).
114
+
- The ``vary: accept-encoding`` header is inserted on every response.
100
115
101
-
Also the "*vary: accept-encoding*" header may be inserted even if compression is *not*
102
-
applied due to incompatible "*accept-encoding*" header in a request. This happens
103
-
when the requested resource still can be compressed given compatible "*accept-encoding*".
116
+
Also the ``vary: accept-encoding`` header may be inserted even if compression is **not**
117
+
applied due to incompatible ``accept-encoding`` header in a request. This happens
118
+
when the requested resource can still be compressed given compatible ``accept-encoding``.
104
119
Otherwise, if an uncompressed response is cached by a caching proxy in front of Envoy,
105
-
the proxy won't know to fetch a new incoming request with compatible "*accept-encoding*"
120
+
the proxy won't know to fetch a new incoming request with compatible ``accept-encoding``
106
121
from upstream.
107
122
108
123
When request compression is *applied*:
109
124
110
-
- *content-length* is removed from request headers.
111
-
- *content-encoding* with the compression scheme used (e.g., ``gzip``) is added to
125
+
- ``content-length`` is removed from request headers.
126
+
- ``content-encoding`` with the compression scheme used (e.g., ``gzip``) is added to
112
127
request headers.
113
128
114
129
Per-Route Configuration
@@ -215,12 +230,12 @@ specific to responses only:
215
230
:widths: 1, 1, 2
216
231
217
232
no_accept_header, Counter, Number of requests with no accept header sent.
218
-
header_identity, Counter, Number of requests sent with "identity" set as the *accept-encoding*.
219
-
header_compressor_used, Counter, Number of requests sent with filter's configured encoding set as the *accept-encoding*.
233
+
header_identity, Counter, Number of requests sent with "identity" set as the ``accept-encoding``.
234
+
header_compressor_used, Counter, Number of requests sent with filter's configured encoding set as the ``accept-encoding``.
220
235
header_compressor_overshadowed, Counter, Number of requests skipped by this filter instance because they were handled by another filter in the same filter chain.
221
-
header_wildcard, Counter, Number of requests sent with "\*" set as the *accept-encoding*.
222
-
header_not_valid, Counter, Number of requests sent with a not valid *accept-encoding* header (aka "q=0" or an unsupported encoding type).
223
-
not_compressed_etag, Counter, Number of requests that were not compressed due to the etag header. *disable_on_etag_header* must be turned on for this to happen.
236
+
header_wildcard, Counter, Number of requests sent with ``\*`` set as the ``accept-encoding``.
237
+
header_not_valid, Counter, Number of requests sent with a not valid ``accept-encoding`` header (aka ``q=0`` or an unsupported encoding type).
238
+
not_compressed_etag, Counter, Number of requests that were not compressed due to the etag header. ``disable_on_etag_header`` must be turned on for this to happen.
0 commit comments