Home
last modified time | relevance | path

Searched refs:MockInterceptor (Results 1 – 8 of 8) sorted by relevance

/third_party/node/deps/undici/src/types/
Dmock-interceptor.d.ts7 MockInterceptor,
13 constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);
23 declare class MockInterceptor {
24 constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);
26 …reply<TData extends object = object>(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallbac…
29 data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler<TData>,
30 responseOptions?: MockInterceptor.MockResponseOptions
35 defaultReplyHeaders(headers: IncomingHttpHeaders): MockInterceptor;
37 defaultReplyTrailers(trailers: Record<string, string>): MockInterceptor;
39 replyContentLength(): MockInterceptor;
[all …]
Dmock-client.d.ts4 import { MockInterceptor, Interceptable } from './mock-interceptor'
12 intercept(options: MockInterceptor.Options): MockInterceptor;
Dmock-pool.d.ts3 import { Interceptable, MockInterceptor } from './mock-interceptor'
12 intercept(options: MockInterceptor.Options): MockInterceptor;
Dmock-agent.d.ts3 import { Interceptable, MockInterceptor } from './mock-interceptor'
4 import MockDispatch = MockInterceptor.MockDispatch;
/third_party/node/deps/undici/src/lib/mock/
Dmock-interceptor.js59 class MockInterceptor { class
205 module.exports.MockInterceptor = MockInterceptor
Dmock-client.js15 const { MockInterceptor } = require('./mock-interceptor')
49 return new MockInterceptor(opts, this[kDispatches])
Dmock-pool.js15 const { MockInterceptor } = require('./mock-interceptor')
49 return new MockInterceptor(opts, this[kDispatches])
/third_party/node/deps/undici/src/docs/api/
DMockPool.md52 Returns: `MockInterceptor` corresponding to the input options.
62 ### Return: `MockInterceptor`
66 * **reply** `(statusCode: number, replyData: string | Buffer | object | MockInterceptor.MockRespons…
67 * **reply** `(callback: MockInterceptor.MockReplyOptionsCallback) => MockScope` - define a reply fo…
69 * **defaultReplyHeaders** `(headers: Record<string, string>) => MockInterceptor` - define default h…
70 * **defaultReplyTrailers** `(trailers: Record<string, string>) => MockInterceptor` - define default…
71 * **replyContentLength** `() => MockInterceptor` - define automatically calculated `content-length`…
84 A `MockScope` is associated with a single `MockInterceptor`. With this, we can configure the defaul…