@ayonli/jsext
Version:
A JavaScript extension package for building strong and modern applications.
11 lines (10 loc) • 732 B
TypeScript
import { FileInfo } from "./fs.ts";
import { withWeb } from "../http/internal.ts";
import { NetAddress, RequestContext, RequestHandler, RequestErrorHandler, ServeOptions, ServeStaticOptions, Server } from "../http/server.ts";
export { withWeb };
export * from "../http/util.ts";
export type { NetAddress, RequestContext, RequestHandler, RequestErrorHandler, ServeOptions, ServeStaticOptions, Server, };
export declare function etag(data: string | Uint8Array | FileInfo): Promise<string>;
export declare function randomPort(prefer?: number | undefined): Promise<number>;
export declare function serve(options: ServeOptions): Server;
export declare function serveStatic(req: Request, options?: ServeStaticOptions): Promise<Response>;