DispatchNamespace
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:8295
Methods
Section titled “Methods”get(
name
,args?
,options?
):object
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:8303
Parameters
Section titled “Parameters”string
Name of the Worker script.
Arguments to Worker script.
options?
Section titled “options?”Options for Dynamic Dispatch invocation.
Returns
Section titled “Returns”object
A Fetcher object that allows you to send requests to the Worker script.
connect()
Section titled “connect()”connect(
address
,options?
):Socket
Parameters
Section titled “Parameters”address
Section titled “address”string
| SocketAddress
options?
Section titled “options?”Returns
Section titled “Returns”fetch()
Section titled “fetch()”fetch(
input
,init?
):Promise
<Response
>
Parameters
Section titled “Parameters”RequestInfo
<unknown
, CfProperties
<unknown
>> | URL
RequestInit
<CfProperties
<unknown
>>
Returns
Section titled “Returns”Promise
<Response
>
Throws
Section titled “Throws”If the Worker script does not exist in this dispatch namespace, an error will be thrown.