UNPKG

node-request-interceptor

Version:

Low-level HTTP/HTTPS/XHR request interception library for NodeJS

9 lines (8 loc) 363 B
/// <reference types="node" /> import { RequestOptions } from 'http'; /** * Converts a URL instance into the RequestOptions object expected by * the `ClientRequest` class. * @see https://github.com/nodejs/node/blob/908292cf1f551c614a733d858528ffb13fb3a524/lib/internal/url.js#L1257 */ export declare function getRequestOptionsByUrl(url: URL): RequestOptions;