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: documentation/docs/globals/FetchEvent/FetchEvent.mdx
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,20 +15,22 @@ It provides the [`event.respondWith()`](./prototype/respondWith.mdx) method, whi
15
15
- : The `Request` that was received by the application.
16
16
-`FetchEvent.client`_**readonly**_
17
17
- : Information about the downstream client that made the request.
18
+
While these fields are always defined on Compute, they may be *null* when not available in testing environments
19
+
such as Viceroy.
18
20
-`FetchEvent.client.address`_**readonly**_
19
21
- : A string representation of the IPv4 or IPv6 address of the downstream client.
20
22
-`FetchEvent.client.geo`_**readonly**_
21
-
- : A[geolocation dictionary](../../fastly:geolocation/getGeolocationForIpAddress.mdx) corresponding to the IP address of the downstream client.
23
+
- : Either `null`, or a[geolocation dictionary](../../fastly:geolocation/getGeolocationForIpAddress.mdx) corresponding to the IP address of the downstream client.
22
24
-`FetchEvent.client.tlsJA3MD5`_**readonly**_
23
-
- : A string representation of the JA3 hash of the TLS ClientHello message.
25
+
- : Either `null` or a string representation of the JA3 hash of the TLS ClientHello message.
- : An ArrayBuffer containing the raw client certificate in the mutual TLS handshake message. It is in PEM format. Returns an empty ArrayBuffer if this is not mTLS or available.
31
+
- : Either `null` or an ArrayBuffer containing the raw client certificate in the mutual TLS handshake message. It is in PEM format. Returns an empty ArrayBuffer if this is not mTLS or available.
30
32
-`FetchEvent.client.tlsClientHello`_**readonly**_
31
-
- : An ArrayBuffer containing the raw bytes sent by the client in the TLS ClientHello message.
33
+
- : Either `null` or an ArrayBuffer containing the raw bytes sent by the client in the TLS ClientHello message.
32
34
-`FetchEvent.server`_**readonly**_
33
35
- : Information about the server receiving the request for the Fastly Compute service.
0 commit comments