@webfaas/webfaas-plugin-endpoint-http
Version:
WebFaaS Framework - Plugin - Endpoint - HTTP
18 lines (17 loc) • 544 B
TypeScript
/// <reference types="node" />
import { ServerOptions } from "https";
export declare enum EndPointHTTPConfigTypeEnum {
HTTP = "HTTP",
HTTPS = "HTTPS"
}
export interface EndPointHTTPConfigRoute {
[path: string]: string;
}
export declare class EndPointHTTPConfig {
port: number;
hostname?: string;
type: EndPointHTTPConfigTypeEnum;
httpConfig: ServerOptions | null;
route: EndPointHTTPConfigRoute;
constructor(port?: number, hostname?: string, type?: EndPointHTTPConfigTypeEnum, httpConfig?: ServerOptions);
}