deno.land / std@0.117.0 / http / server.ts

import * as mod from "https://deno.land/std@0.117.0/http/server.ts";

Classes

Server

Used to construct an HTTP server.

Functions

_parseAddrFromStr

Parse an address from a string.

listenAndServe 👎 deprecated
listenAndServeTls 👎 deprecated
serve

Serves HTTP requests with the given handler.

serveListener

Constructs a server, accepts incoming connections on the given listener, and handles requests on these connections with the given handler.

serveTls

Serves HTTPS requests with the given handler.

Interfaces

ConnInfo

Information about the connection a request arrived on.

ServeInit

Additional serve options.

ServerInit

Options for running an HTTP server.

Type Aliases

Handler

A handler for HTTP requests. Consumes a request and connection information and returns a response.

std
Deno standard library
GitHub Stars
2178
Go to latest

Version Info

Tagged at
6 months ago