Skip to main content
Module

std/http/server.ts

Deno standard library
Go to Latest
import * as mod from "https://deno.land/std@0.34.0/http/server.ts";

Functions

Create an HTTPS server with given options and request handler

ParseHTTPVersion parses a HTTP version string. "HTTP/1.0" returns (1, 0, true). Ported from https://github.com/golang/go/blob/f5c43b9/src/net/http/request.go#L766-L792

Start a HTTP server

Create an HTTPS server with given options

write trailer headers to writer. it mostly should be called after writeResponse

Interfaces

Interface of HTTP server response. If body is a Reader, response would be chunked. If body is a string, it would be UTF-8 encoded by default.

Type Aliases

Options for creating an HTTP server.

Options for creating an HTTPS server.