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

x/doa/test/test_deps.ts>Server

A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Latest
class Server
implements AsyncIterable<ServerRequest>
import { Server } from "https://deno.land/x/doa@v1.0.0/test/test_deps.ts";

Constructors

new
Server(listener: Deno.Listener)

Properties

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

Methods

private
acceptConnAndIterateHttpRequests(mux: MuxAsyncIterator<ServerRequest>): AsyncIterableIterator<ServerRequest>
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>