UNPKG

@fanoutio/grip

Version:
9 lines 733 B
import { WebSocketContext } from '../data/index.js'; export declare const CONTENT_TYPE_APPLICATION = "application"; export declare const CONTENT_SUBTYPE_WEBSOCKET_EVENTS = "websocket-events"; export declare const CONTENT_TYPE_WEBSOCKET_EVENTS = "application/websocket-events"; export declare function isWsOverHttpImpl(method: string | undefined, headers: Headers): boolean; export declare function getWebSocketContextImpl(headers: Headers, getBody: () => Promise<Uint8Array>, prefix: string): Promise<WebSocketContext>; export declare function isWsOverHttp(req: Request): boolean; export declare function getWebSocketContextFromReq(req: Request, prefix?: string): Promise<WebSocketContext>; //# sourceMappingURL=ws-over-http.d.ts.map