Skip to main content
HTTP Server - Deno documentation

Functions

f
Deno.serve

Serves HTTP requests with the given handler.

f
Deno.serveHttp

Provides an interface to handle HTTP request and responses over TCP or TLSconnections. The method returns an HttpConn which yields upRequestEvent events, which utilize the web platform standardRequest and Response objects to handle the request.

Interfaces

I
Deno.HttpServer

An instance of the server created using Deno.serve() API.

I
Deno.ServeDefaultExport

Interface that module run with deno serve subcommand must conform to.

I
Deno.ServeHandlerInfo

Information for a HTTP request.

I
Deno.ServeInit
No documentation available
I
Deno.ServeTlsInit
No documentation available
I
Deno.ServeTlsOptions

Additional options which are used when opening a TLS (HTTPS) server.

I
Deno.ServeUnixHandlerInfo

Information for a unix domain socket HTTP request.

I
Deno.ServeUnixInit
No documentation available
I
Deno.HttpConn

The async iterable that is returned from serveHttp whichyields up RequestEvent events, representing individualrequests on the HTTP server connection.

I
Deno.RequestEvent

The event yielded from an HttpConn which represents an HTTPrequest from a remote client.

Type Aliases

T
Deno.ServeHandler

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

T
Deno.ServeUnixHandler

A handler for unix domain socket HTTP requests. Consumes a request and returns a response.

T
Deno.Server
No documentation available