Skip to content

GatewayAdapter

Defined in: src/adapters/types.ts:6

Bag of optional store implementations and runtime capabilities for a given runtime.

optional cacheStore: CacheStore

Defined in: src/adapters/types.ts:9


optional circuitBreakerStore: CircuitBreakerStore

Defined in: src/adapters/types.ts:8


optional dispatchBinding: (service, request) => Promise<Response>

Defined in: src/adapters/types.ts:14

Dispatch a request to a named service binding or sidecar.

string

Request

Promise<Response>


optional rateLimitStore: RateLimitStore

Defined in: src/adapters/types.ts:7


optional waitUntil: (promise) => void

Defined in: src/adapters/types.ts:12

Schedule background work that outlives the response (e.g. Cloudflare executionCtx.waitUntil).

Promise<unknown>

void