Module

std/node/http.ts>ClientRequest

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

ClientRequest represents the http(s) request from the client

Constructors

new
ClientRequest(opts: RequestOptions, cb?: (res: IncomingMessageForClient) => void)

Properties

body: null | ReadableStream
controller: ReadableStreamDefaultController | null
defaultProtocol: string

Methods

_createBody(body: ReadableStream | null, opts: RequestOptions): Promise<Buffer | ReadableStream | null>
_createCustomClient(): Promise<Deno.HttpClient | undefined>
_write(
chunk: any,
_enc: string,
cb: () => void,
)