Skip to content
File

Blob: src/cloudflare/internal/http.ts

typescript12 lines
1// Copyright (c) 2026 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5export interface FetchHandler {
6 // We don't use typeof fetch here because that would use the client-side signature,
7 // which is different from the server-side signature.
8 fetch: (request: Request, env?: unknown, ctx?: unknown) => Promise<Response>;
9}
10 
11export const portMapper = new Map<number, FetchHandler>();