@darlean/base
Version:
Base types and definitions for creating Darlean actors and suites
29 lines (28 loc) • 636 B
TypeScript
/// <reference types="node" />
export interface IWebGatewayRequest {
url: string;
hostname?: string;
port?: number;
protocol?: string;
searchParams?: {
[]: string[];
};
method?: string;
path?: string;
pathRemainder?: string;
username?: string;
headers?: {
[]: string;
};
cookies?: string[];
body?: Buffer;
}
export interface IWebGatewayResponse {
statusCode: number;
statusMessage: string;
headers?: {
[]: string | string[];
};
cookies?: string[];
body?: Buffer;
}