Skip to main content
Module

x/pogo/dependencies.ts>http.ServerRequest

Server framework for Deno
Go to Latest
class http.ServerRequest
import { http } from "https://deno.land/x/pogo@v0.5.2/dependencies.ts";
const { ServerRequest } = http;

Properties

readonly
body: Deno.Reader

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

const buf: Uint8Array = await Deno.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
r: BufReader
url: string
w: BufWriter

Methods

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