UNPKG

@redocly/cli

Version:

[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g

23 lines (22 loc) 828 B
import * as http from 'http'; import type { ReadStream } from 'fs'; export declare const mimeTypes: { '.html': string; '.js': string; '.css': string; '.json': string; '.png': string; '.jpg': string; '.gif': string; '.svg': string; '.wav': string; '.mp4': string; '.woff': string; '.ttf': string; '.eot': string; '.otf': string; '.wasm': string; }; export declare function respondWithGzip(contents: string | Buffer | ReadStream, request: http.IncomingMessage, response: http.ServerResponse, headers?: {}, code?: number): void; export declare function startHttpServer(port: number, host: string, handler: http.RequestListener): http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>; export declare function startWsServer(port: number, host: string): any;