Module

std/node/http.ts

Deno standard library
Go to Latest
class ServerResponse
extends NodeWritable
import { ServerResponse } from "https://deno.land/std@0.145.0/node/http.ts";

Constructors

new
ServerResponse(reqEvent: Deno.RequestEvent)

Properties

headersSent: boolean
optional
statusCode: number
optional
statusMessage: string

Methods

end(
chunk?: any,
encoding?: any,
cb?: any,
): this
getHeader(name: string)
getHeaderNames()
hasHeader(name: string)
removeHeader(name: string)
respond(final: boolean, singleChunk?: Chunk)
setHeader(name: string, value: string)
writeHead(status: number, headers: Record<string, string>)