Searched refs:MockInterceptor (Results 1 – 8 of 8) sorted by relevance
/third_party/node/deps/undici/src/types/ |
D | mock-interceptor.d.ts | 7 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 …]
|
D | mock-client.d.ts | 4 import { MockInterceptor, Interceptable } from './mock-interceptor' 12 intercept(options: MockInterceptor.Options): MockInterceptor;
|
D | mock-pool.d.ts | 3 import { Interceptable, MockInterceptor } from './mock-interceptor' 12 intercept(options: MockInterceptor.Options): MockInterceptor;
|
D | mock-agent.d.ts | 3 import { Interceptable, MockInterceptor } from './mock-interceptor' 4 import MockDispatch = MockInterceptor.MockDispatch;
|
/third_party/node/deps/undici/src/lib/mock/ |
D | mock-interceptor.js | 59 class MockInterceptor { class 205 module.exports.MockInterceptor = MockInterceptor
|
D | mock-client.js | 15 const { MockInterceptor } = require('./mock-interceptor') 49 return new MockInterceptor(opts, this[kDispatches])
|
D | mock-pool.js | 15 const { MockInterceptor } = require('./mock-interceptor') 49 return new MockInterceptor(opts, this[kDispatches])
|
/third_party/node/deps/undici/src/docs/api/ |
D | MockPool.md | 52 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…
|