UNPKG

@iota-big3/sdk-gateway

Version:

Universal API Gateway with protocol translation, intelligent routing, rate limiting, health checking, and caching

29 lines 891 B
/** * @iota-big3/sdk-gateway * Clean HTTP Adapter - Phase 2d Rebuild */ import { GatewayRequest, GatewayResponse, Protocol } from '../types/gateway-types'; export interface ProtocolAdapter { protocol: Protocol; initializeAsync(config: { gateway: unknown; port?: number; }): Promise<void>; handleRequestAsync(request: GatewayRequest): Promise<GatewayResponse>; shutdownAsync(): Promise<void>; } export declare class HTTPAdapter implements ProtocolAdapter { protocol: Protocol; private app?; private server?; private gateway?; initializeAsync(config: { gateway: unknown; port?: number; }): Promise<void>; private convertRequest; private sendResponse; handleRequestAsync(request: GatewayRequest): Promise<GatewayResponse>; shutdownAsync(): Promise<void>; } //# sourceMappingURL=http.adapter.d.ts.map