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: src/content/docs/workers/runtime-apis/request.mdx
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,6 +227,14 @@ All plans have access to:
227
227
228
228
* If Cloudflare replaces the value of the `Accept-Encoding` header, the original value is stored in the `clientAcceptEncoding` property, for example, `"gzip, deflate, br"`.
229
229
230
+
*`clientQuicRtt` number | undefined
231
+
232
+
* The smoothed round-trip time (RTT) between Cloudflare and the client for QUIC connections, in milliseconds. Only present when the client connected over QUIC (HTTP/3). For example, `42`.
233
+
234
+
*`clientTcpRtt` number | undefined
235
+
236
+
* The smoothed round-trip time (RTT) between the client and Cloudflare for TCP connections, in milliseconds. Only present when the client connected over TCP (HTTP/1 and HTTP/2). For example, `22`.
237
+
230
238
*`colo` string
231
239
232
240
* The three-letter [`IATA`](https://en.wikipedia.org/wiki/IATA_airport_code) airport code of the data center that the request hit, for example, `"DFW"`.
@@ -235,6 +243,12 @@ All plans have access to:
235
243
236
244
* Country of the incoming request. The two-letter country code in the request. This is the same value as that provided in the `CF-IPCountry` header, for example, `"US"`.
237
245
246
+
*`edgeL4` Object | undefined
247
+
248
+
* Layer 4 transport statistics for the connection between the client and Cloudflare. Contains the following property:
249
+
*`deliveryRate` number - The most recent data delivery rate estimate for the connection, in bytes per second. For example, `123456`.
250
+
251
+
238
252
*`isEUCountry` string | null
239
253
240
254
* If the country of the incoming request is in the EU, this will return `"1"`. Otherwise, this property is either omitted or `false`.
@@ -454,4 +468,4 @@ Incoming `Request` objects passed to the [`fetch()` handler](/workers/runtime-ap
summary: The smoothed QUIC round-trip time (RTT) between Cloudflare and the client in milliseconds.
935
+
description: |-
936
+
This field is only populated for QUIC (HTTP/3) connections. For TCP connections, the value is `0`.
937
+
example_value: |-
938
+
42
939
+
example_block: |-
940
+
# Match requests over QUIC where the RTT exceeds 200 ms
941
+
cf.timings.client_quic_rtt_msec > 200
908
942
909
943
- name: cf.timings.edge_msec
910
944
data_type: Integer
@@ -2205,4 +2239,4 @@ entries:
2205
2239
2206
2240
You can use this field to customize the response for a specific type of error (for example, all 1XXX errors or all WAF block actions).
2207
2241
2208
-
**Note**: This field is only available in [Response Header Transform Rules](/rules/transform/response-header-modification/) and [Custom Errors](/rules/custom-errors/).
2242
+
**Note**: This field is only available in [Response Header Transform Rules](/rules/transform/response-header-modification/) and [Custom Errors](/rules/custom-errors/).
0 commit comments