When the --allow-sys=networkInterfaces permission is provided, the file
server will also display the local area network addresses that can be used to
access the server.
HTTP Status Code and Status Text
Helper for processing status code and status text.
HTTP errors
Provides error classes for each HTTP error status code as well as utility
functions for handling HTTP errors in a structured way.
Methods
Provides helper functions and types to work with HTTP method strings safely.
Negotiation
A set of functions which can be used to negotiate content types, encodings and
languages when responding to requests.
Note: some libraries include accept charset functionality by analyzing the
Accept-Charset header. This is a legacy header that
clients omit and servers should ignore
therefore is not provided.
User agent handling
The UserAgent class provides user agent string parsing, allowing
a user agent flag to be semantically understood.
For example to integrate the user agent provided in the header User-Agent
in an http request would look like this:
Provides user-friendly serve on top of Deno's native HTTP server and other utilities for creating HTTP servers and clients.
File Server
A small program for serving local files over HTTP.
When the
--allow-sys=networkInterfacespermission is provided, the file server will also display the local area network addresses that can be used to access the server.HTTP Status Code and Status Text
Helper for processing status code and status text.
HTTP errors
Provides error classes for each HTTP error status code as well as utility functions for handling HTTP errors in a structured way.
Methods
Provides helper functions and types to work with HTTP method strings safely.
Negotiation
A set of functions which can be used to negotiate content types, encodings and languages when responding to requests.
User agent handling
The
UserAgentclass provides user agent string parsing, allowing a user agent flag to be semantically understood.For example to integrate the user agent provided in the header
User-Agentin an http request would look like this:Routing
route provides an easy way to route requests to different handlers based on the request path and method.