UNPKG

serverless-aws-lambda

Version:

AWS Application Load Balancer and API Gateway - Lambda dev tool for Serverless. Allows Express synthax in handlers. Supports packaging, local invoking and offline ALB, APG, S3, SNS, SQS, DynamoDB Stream server mocking.

25 lines (24 loc) 808 B
import type { LambdaEndpoint } from "../parseEvents/endpoints"; export declare class BufferedStreamResponse { #private; buffer?: Uint8Array; _isHttpIntegrationResponse: boolean; _metaDelimiter: number; _endDelimiter: number; _ct?: any; _isStreamResponse: boolean; static codec: TextDecoder; static splitMessage: (buffer?: Uint8Array, metaDelimiter?: number) => Uint8Array | undefined; constructor(mockEvent?: LambdaEndpoint); setHeader(name: string, value: string): void; write(chunk: Uint8Array, encoding?: BufferEncoding): void; end(chunk?: Uint8Array): void; destroy(): void; getParsedResponse(): string | { statusCode: number; headers: { "Content-Type": string; }; body: string; } | undefined; }