We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374c9e9 commit 7ae2067Copy full SHA for 7ae2067
src/content/docs/pages/functions/api-reference.mdx
@@ -68,6 +68,15 @@ The following are the properties on the `context` object which are passed throug
68
69
This is the incoming [Request](/workers/runtime-apis/request/).
70
71
+ You can use this to access request parameters such as the url:
72
+
73
+ ```js
74
+ export function onRequest(context) {
75
+ const url = context.request.url;
76
+ const pathname = new URL(url).pathname;
77
+ }
78
+ ```
79
80
- `functionPath` string
81
82
This is the path of the request.
0 commit comments