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

x/levo/src/deps.ts>server.Server

Server side rendering with The Elm Architecture in Deno
Latest
class server.Server
implements AsyncIterable<ServerRequest>
import { server } from "https://deno.land/x/levo@v0.0.27/src/deps.ts";
const { Server } = server;

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>