Skip to main content
Deno 2 is finally here 🎉️
Learn more
class HttpListenerMod
implements IHttpListener
import { HttpListenerMod } from "https://deno.land/x/sptaki@1.2.0/services/mod/mod.ts";

Constructors

new
HttpListenerMod(canHandleOverride: (sessionId: string, req: IncomingMessage) => boolean, handleOverride: (
sessionId: string,
) => void
)

Properties

private
canHandleOverride
private
handleOverride

Methods

canHandle(sessionId: string, req: IncomingMessage): boolean
handle(
sessionId: string,
): void