Skip to main content
Module

x/masx200_deno_serve_https/ServeHttpInit.ts

deno-serve-https 对于deno的低级api的封装,可以启动同时支持http/1.1和http/2的https服务,并且在一个端口上同时支持了http连接升级,websocket,connect方法.
Go to Latest
File
import { ConnInfo } from "./ConnInfo.ts";import { Handler } from "./Handler.ts";
export type ServeHttpInit = Partial< Deno.ListenOptions & { onNotFound?: Handler; signal?: AbortSignal; port?: number; hostname?: string;
onError?: ( // deno-lint-ignore no-explicit-any reason: any, request: Request, connInfo: ConnInfo, ) => Response | PromiseLike<Response>; onListen?: (params: { hostname: string; port: number }) => void; }>;