Files
Shifted/node_modules/@mswjs/interceptors/lib/node/RemoteHttpInterceptor.d.mts
2026-02-10 01:14:19 +00:00

39 lines
1.4 KiB
TypeScript

import { l as HttpRequestEventMap, r as Interceptor } from "./Interceptor-DEazpLJd.mjs";
import { t as BatchInterceptor } from "./BatchInterceptor-D7mXzHcQ.mjs";
import { t as ClientRequestInterceptor } from "./index-C0YAQ36w.mjs";
import { XMLHttpRequestInterceptor } from "./interceptors/XMLHttpRequest/index.mjs";
import { FetchInterceptor } from "./interceptors/fetch/index.mjs";
import { ChildProcess } from "child_process";
//#region src/RemoteHttpInterceptor.d.ts
interface SerializedRequest {
id: string;
url: string;
method: string;
headers: Array<[string, string]>;
credentials: RequestCredentials;
body: string;
}
interface SerializedResponse {
status: number;
statusText: string;
headers: Array<[string, string]>;
body: string;
}
declare class RemoteHttpInterceptor extends BatchInterceptor<[ClientRequestInterceptor, XMLHttpRequestInterceptor, FetchInterceptor]> {
constructor();
protected setup(): void;
}
declare function requestReviver(key: string, value: any): any;
interface RemoveResolverOptions {
process: ChildProcess;
}
declare class RemoteHttpResolver extends Interceptor<HttpRequestEventMap> {
static symbol: symbol;
private process;
constructor(options: RemoveResolverOptions);
protected setup(): void;
}
//#endregion
export { RemoteHttpInterceptor, RemoteHttpResolver, RemoveResolverOptions, SerializedRequest, SerializedResponse, requestReviver };
//# sourceMappingURL=RemoteHttpInterceptor.d.mts.map