Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/abc/vendor/https/deno.land/std/http/server.ts>ServerRequest

A better Deno framework to create web application.
Go to Latest
class ServerRequest
import { ServerRequest } from "https://deno.land/x/abc@v1.3.1/vendor/https/deno.land/std/http/server.ts";

Properties

readonly
body: Deno.Reader

Body of the request. The easiest way to consume the body is:

const buf: Uint8Array = await readAll(req.body);
conn: Deno.Conn
readonly
contentLength: number | null

Value of Content-Length header. If null, then content length is invalid or not given (e.g. chunked encoding).

readonly
done: Promise<Error | undefined>
headers: Headers
method: string
proto: string
protoMajor: number
protoMinor: number
url: string

Methods

finalize(): Promise<void>
respond(r: Response): Promise<void>