Interface HttpRequestOptions

interface HttpRequestOptions {
    _defaultAgent?: Agent;
    agent?: boolean | Agent;
    auth?: string;
    createConnection?: ((options: ClientRequestArgs, oncreate: ((err: Error, socket: Socket) => void)) => Socket);
    defaultPort?: string | number;
    family?: number;
    headers?: OutgoingHttpHeaders;
    host?: string;
    hostname?: string;
    localAddress?: string;
    lookup?: LookupFunction;
    maxHeaderSize?: number;
    method?: string;
    path?: string;
    port?: string | number;
    protocol?: string;
    searchParams?: {
        [key: string]: string;
    };
    setHost?: boolean;
    signal?: AbortSignal;
    socketPath?: string;
    timeout?: number;
    url?: string;
}

Hierarchy

  • RequestOptions
    • HttpRequestOptions

Properties

_defaultAgent?: Agent
agent?: boolean | Agent
auth?: string
createConnection?: ((options: ClientRequestArgs, oncreate: ((err: Error, socket: Socket) => void)) => Socket)
defaultPort?: string | number
family?: number
headers?: OutgoingHttpHeaders
host?: string
hostname?: string
localAddress?: string
lookup?: LookupFunction
maxHeaderSize?: number
8192
method?: string
path?: string
port?: string | number
protocol?: string
searchParams?: {
    [key: string]: string;
}
setHost?: boolean
signal?: AbortSignal
socketPath?: string
timeout?: number
url?: string