Skip to main content
The Deno 2 Release Candidate is here
Learn more
class HttpListenerMod
implements IHttpListener
import { HttpListenerMod } from "https://deno.land/x/sptaki@1.2.0/services/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