- This function will be invoked on all OPTIONS requests
{{</definitions>}}
### env.ASSETS.fetch()
The env.ASSETS.fetch() function allows you to fetch a static asset. Requests to this will be to the pretty path not directly to the asset (i.e. if you had the path: `functions/users/index.html`, you will request /users/ instead of /users/index.html). This will run the header and redirect rules, so they will modify the response that is returned.
## Types
### EventContext
{{<definitions>}}
The following are the properties on the context object which are passed through on the onRequest methods: