method Server.prototype.once
Usage in Deno
import { Server } from "node:http";
Server.prototype.once(event: "connection",listener: (socket: Socket) => void,): this
listener: (socket: Socket) => void
this
Server.prototype.once(event: "checkContinue",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this
Server.prototype.once(event: "checkExpectation",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this
Server.prototype.once(event: "clientError",listener: (err: Error,socket: stream.Duplex,) => void,): this
Server.prototype.once(event: "connect",listener: (req: InstanceType<Request>,socket: stream.Duplex,head: Buffer,) => void,): this
Server.prototype.once(event: "dropRequest",listener: (req: InstanceType<Request>,socket: stream.Duplex,) => void,): this
Server.prototype.once(event: "request",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this