From T, pick a set of properties whose keys are in the union K

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

Hierarchy (view full)

Properties

hints?: number

One or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.

_defaultAgent?: Agent
agent?: boolean | Agent
auth?: null | string
createConnection?: ((options: ClientRequestArgs, oncreate: ((err: null | Error, socket: Duplex) => void)) => undefined | null | Duplex)
defaultPort?: string | number
family?: number
headers?: readonly string[] | OutgoingHttpHeaders
host?: null | string
hostname?: null | string
insecureHTTPParser?: boolean
localAddress?: string
localPort?: number
maxHeaderSize?: number
16384
method?: string
path?: null | string
port?: null | string | number
protocol?: null | string
setDefaultHeaders?: boolean
setHost?: boolean
signal?: AbortSignal
socketPath?: string
timeout?: number
uniqueHeaders?: (string | string[])[]
joinDuplicateHeaders?: boolean