CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
RemoteHttpInterceptor.d.ts46 linesDownload Raw Back to node
1import { ChildProcess } from 'child_process';2import { h as Interceptor, H as HttpRequestEventMap } from './Interceptor-bc5a9d8e.js';3import { a as BatchInterceptor } from './BatchInterceptor-5b72232f.js';4import { ClientRequestInterceptor } from './interceptors/ClientRequest/index.js';5import { XMLHttpRequestInterceptor } from './interceptors/XMLHttpRequest/index.js';6import { FetchInterceptor } from './interceptors/fetch/index.js';7import '@open-draft/deferred-promise';8import '@open-draft/logger';9import 'strict-event-emitter';10import 'node:net';11 12interface SerializedRequest {13    id: string;14    url: string;15    method: string;16    headers: Array<[string, string]>;17    credentials: RequestCredentials;18    body: string;19}20interface SerializedResponse {21    status: number;22    statusText: string;23    headers: Array<[string, string]>;24    body: string;25}26declare class RemoteHttpInterceptor extends BatchInterceptor<[27    ClientRequestInterceptor,28    XMLHttpRequestInterceptor,29    FetchInterceptor30]> {31    constructor();32    protected setup(): void;33}34declare function requestReviver(key: string, value: any): any;35interface RemoveResolverOptions {36    process: ChildProcess;37}38declare class RemoteHttpResolver extends Interceptor<HttpRequestEventMap> {39    static symbol: symbol;40    private process;41    constructor(options: RemoveResolverOptions);42    protected setup(): void;43}44 45export { RemoteHttpInterceptor, RemoteHttpResolver, RemoveResolverOptions, SerializedRequest, SerializedResponse, requestReviver };46 
basant307/AI_Governance_Project · CoolFace