UNPKG

node-request-interceptor

Version:

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

11 lines (10 loc) 398 B
/// <reference types="node" /> import { RequestOptions } from 'https'; import { RequestSelf } from '../glossary'; declare type IsomorphicRequestOptions = RequestOptions & RequestSelf; export declare const DEFAULT_PATH = "/"; /** * Creates a `URL` instance from a given `RequestOptions` object. */ export declare function getUrlByRequestOptions(options: IsomorphicRequestOptions): URL; export {};