UNPKG

serverless-spy

Version:

CDK-based library for writing elegant integration tests on AWS serverless architecture and an additional web console to monitor events in real time.

17 lines (16 loc) 492 B
import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@smithy/types"; type HttpResponseOptions = Partial<HttpMessage> & { statusCode: number; reason?: string; }; export interface HttpResponse extends IHttpResponse { } export declare class HttpResponse { statusCode: number; reason?: string; headers: HeaderBag; body?: any; constructor(options: HttpResponseOptions); static isInstance(response: unknown): response is HttpResponse; } export {};