WorkerEnvFetchBinding
Overview
Usage
- Node
- Deno
import { WorkerEnvFetchBinding } from 'keywork/router/interfaces'
import { WorkerEnvFetchBinding } from 'https://deno.land/x/keywork/router/interfaces'
Properties
fetch
fetch: (`input`: `URL` | `RequestInfo`, `init?`: `RequestInit`) => `Promise<Response>`
Type declaration
(input, init?): `Promise<Response>`
Parameters
Name | Type |
---|---|
input | URL |
init? | RequestInit |
Returns
Promise<Response>
Defined in
router/interfaces/WorkerEnvFetchBinding.ts:20
An environment binding within a worker that has a
fetch
method. This usually is related to static assets uploaded to Cloudflare KV via Wrangler's Worker Sites.