Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/http/mod.ts>Server

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Server
implements AsyncIterable<ServerRequest>
import { Server } from "https://deno.land/std@0.82.0/http/mod.ts";

Constructors

new
Server(listener: Deno.Listener)

Properties

private
closing: boolean
private
connections: Deno.Conn[]

Methods

private
iterateHttpRequests(conn: Deno.Conn): AsyncIterableIterator<ServerRequest>
private
trackConnection(conn: Deno.Conn): void
private
untrackConnection(conn: Deno.Conn): void
close(): void
[Symbol.asyncIterator](): AsyncIterableIterator<ServerRequest>