Deprecated
This will be removed in Deno 2.0. See the Deno 1.x to 2.x Migration Guide for migration instructions.
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { HttpConn } = Deno;
The async iterable that is returned from Deno.serveHttp
which
yields up RequestEvent
events, representing individual
requests on the HTTP server connection.
Methods
nextRequest(): Promise<RequestEvent | null>
An alternative to the async iterable interface which provides promises
which resolve with either a RequestEvent
when there is
another request or null
when the client has closed the connection.