interface ClientRequestArgs {
    _defaultAgent?: Agent;
    agent?: boolean | Agent;
    auth?: null | string;
    createConnection?: ((options, oncreate) => undefined | null | Duplex);
    defaultPort?: string | number;
    family?: number;
    headers?: OutgoingHttpHeaders;
    hints?: number;
    host?: null | string;
    hostname?: null | string;
    insecureHTTPParser?: boolean;
    joinDuplicateHeaders?: boolean;
    localAddress?: string;
    localPort?: number;
    lookup?: LookupFunction;
    maxHeaderSize?: number;
    method?: string;
    path?: null | string;
    port?: null | string | number;
    protocol?: null | string;
    setHost?: boolean;
    signal?: AbortSignal;
    socketPath?: string;
    timeout?: number;
    uniqueHeaders?: (string | string[])[];
}

Properties

_defaultAgent?: Agent
agent?: boolean | Agent
auth?: null | string
createConnection?: ((options, oncreate) => undefined | null | Duplex)

Type declaration

    • (options, oncreate): undefined | null | Duplex
    • Parameters

      Returns undefined | null | Duplex

defaultPort?: string | number
family?: number
hints?: number
host?: null | string
hostname?: null | string
insecureHTTPParser?: boolean
joinDuplicateHeaders?: boolean
localAddress?: string
localPort?: number
maxHeaderSize?: number

Default

16384
method?: string
path?: null | string
port?: null | string | number
protocol?: null | string
setHost?: boolean
signal?: AbortSignal
socketPath?: string
timeout?: number
uniqueHeaders?: (string | string[])[]