Module

std/node/http.ts>ServerResponse

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

Constructors

new
ServerResponse(reqEvent: Deno.RequestEvent)

Properties

private
readable: ReadableStream
headersSent: boolean
optional
statusCode: number
optional
statusMessage: string

Methods

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