Module

std/node/http.ts>ClientRequest

Deno standard library
Go to Latest
class ClientRequest
extends NodeWritable
import { ClientRequest } from "https://deno.land/std@0.166.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
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,
)