Skip to content

Commit db9875d

Browse files
authored
Update src/content/docs/pages/functions/api-reference.mdx
1 parent 9601ab7 commit db9875d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/pages/functions/api-reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following methods can be used to configure your Pages Function.
1717
`onRequest` will be called unless a more specific `onRequestVerb` method is exported. For example, if both `onRequest` and `onRequestGet` are exported, only `onRequestGet` will be called for `GET` requests.
1818

1919
* <code>onRequest(context[EventContext](#eventcontext))</code> Response | Promise\<Response>
20-
* This function will be invoked on all requests no matter the request method, if no specific request verb method below is exported. It will not be called if `next(context.request)` is called from a `onRquestVerb function`.
20+
* This function will be invoked on all requests no matter what the request method is, as long as no specific request verb (like one of the methods below) is exported. It also won't be invoked if `next(context.request)` is called from a `onRequestVerb` function.
2121
* <code>onRequestGet(context[EventContext](#eventcontext))</code> Response | Promise\<Response>
2222
* This function will be invoked on all `GET` requests.
2323
* <code>onRequestPost(context[EventContext](#eventcontext))</code> Response | Promise\<Response>

0 commit comments

Comments
 (0)