Serves HTTP requests with the given handler.
Provides an interface to handle HTTP request and responses over TCP or TLS
connections. The method returns an HttpConn
which yields up
RequestEvent
events, which utilize the web platform standard
Request
and Response
objects to handle the request.
An instance of the server created using Deno.serve()
API.
Information for a HTTP request.
Options which can be set when calling Deno.serve
.
Additional options which are used when opening a TLS (HTTPS) server.
Information for a unix domain socket HTTP request.
The async iterable that is returned from serveHttp
which
yields up RequestEvent
events, representing individual
requests on the HTTP server connection.
The event yielded from an HttpConn
which represents an HTTP
request from a remote client.
A handler for HTTP requests. Consumes a request and returns a response.
A handler for unix domain socket HTTP requests. Consumes a request and returns a response.