class ClientRequest
extends NodeWritable
import { ClientRequest } from "https://deno.land/std@0.174.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
Methods
_createBody(body: ReadableStream | null, opts: RequestOptions): Promise<Buffer | ReadableStream | null>
_createCustomClient(): Promise<Deno.HttpClient | undefined>
_createUrlStrFromOptions(opts: RequestOptions): string
_final()
_write()
chunk: any,
_enc: string,
cb: () => void,
abort()