MCPcopy Create free account

hub / github.com/mswjs/interceptors / functions

Functions345 in github.com/mswjs/interceptors

MethodcheckEnvironment
()
src/interceptors/fetch/index.ts:26
MethodcheckEnvironment
()
src/interceptors/WebSocket/index.ts:79
MethodcheckEnvironment
()
src/interceptors/XMLHttpRequest/index.ts:17
Methodclose
(code: number, reason?: string)
src/interceptors/WebSocket/WebSocketClassTransport.ts:108
Methodclose
* Close the actual server connection.
src/interceptors/WebSocket/WebSocketServerConnection.ts:295
Methodclose
* Close the WebSocket connection. * @param {number} code A status code (see https://www.rfc-editor.org/rfc/rfc6455#section-7.4.1). * @param {str
src/interceptors/WebSocket/WebSocketClientConnection.ts:149
MethodcomposedPath
()
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:35
Functionconstruct
(target, args, newTarget)
src/interceptors/XMLHttpRequest/XMLHttpRequestProxy.ts:23
Functionconstruct
(target, args, newTarget)
src/interceptors/ClientRequest/utils/recordRawHeaders.ts:116
Methodconstructor
(input, init)
test/modules/fetch/fetch-memory-worker.js:20
Methodconstructor
(public address: string, public port: number)
test/modules/http/compliance/http-errors.test.ts:150
Methodconstructor
(response: IncomingMessage)
test/modules/http/compliance/http-res-read-multiple-times.test.ts:45
Methodconstructor
()
src/BatchInterceptor.test.ts:11
Methodconstructor
()
src/BatchInterceptor.test.ts:17
Methodconstructor
()
src/BatchInterceptor.test.ts:118
Methodconstructor
(options: BatchInterceptorOptions<InterceptorList>)
src/BatchInterceptor.ts:32
Methodconstructor
(message?: string)
src/InterceptorError.ts:2
Methodconstructor
( protected readonly request: Request, protected readonly source: RequestControllerSource )
src/RequestController.ts:25
Methodconstructor
(private readonly symbol: symbol)
src/Interceptor.ts:52
Methodconstructor
()
src/RemoteHttpInterceptor.ts:37
Methodconstructor
(options: RemoveResolverOptions)
src/RemoteHttpInterceptor.ts:147
Methodconstructor
(public name: string)
src/utils/createProxy.test.ts:7
Methodconstructor
()
src/utils/cloneObject.test.ts:40
Methodconstructor
(input: URL | RequestInfo, init?: FetchRequestInit)
src/utils/fetchUtils.ts:46
Methodconstructor
(body?: BodyInit | null, init: FetchResponseInit = {})
src/utils/fetchUtils.ts:286
Methodconstructor
()
src/interceptors/fetch/index.ts:22
Methodconstructor
( transformStreams: Array<TransformStream>, ...strategies: Array<QueuingStrategy> )
src/interceptors/fetch/utils/decompression.ts:7
Methodconstructor
()
src/interceptors/fetch/utils/brotli-decompress.browser.ts:2
Methodconstructor
()
src/interceptors/fetch/utils/brotli-decompress.ts:4
Methodconstructor
(protected readonly options: MockSocketOptions)
src/interceptors/Socket/MockSocket.ts:21
Methodconstructor
(protected readonly socket: WebSocketOverride)
src/interceptors/WebSocket/WebSocketClassTransport.ts:19
Methodconstructor
()
src/interceptors/WebSocket/index.ts:75
Methodconstructor
( private readonly client: WebSocketOverride, private readonly transport: WebSocketClassTransport,
src/interceptors/WebSocket/WebSocketServerConnection.ts:63
Methodconstructor
( public readonly socket: WebSocket, private readonly transport: WebSocketTransport )
src/interceptors/WebSocket/WebSocketClientConnection.ts:49
Methodconstructor
(url: string | URL, protocols?: string | Array<string>)
src/interceptors/WebSocket/WebSocketOverride.ts:46
Methodconstructor
(type: string, init: MessageEventInit<T>)
src/interceptors/WebSocket/utils/events.ts:15
Methodconstructor
(type: string, init: CloseEventInit = {})
src/interceptors/WebSocket/utils/events.ts:55
Methodconstructor
(type: string, init: CloseEventInit = {})
src/interceptors/WebSocket/utils/events.ts:67
Methodconstructor
()
src/interceptors/XMLHttpRequest/index.ts:13
Methodconstructor
( readonly initialRequest: XMLHttpRequest, public logger: Logger )
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:61
Methodconstructor
( type: string, options?: { target: EventTarget; currentTarget: EventTarget } )
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:25
Methodconstructor
(type: string, init?: ProgressEventInit)
src/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.ts:9
Methodconstructor
()
src/interceptors/ClientRequest/index.ts:23
Methodconstructor
(options: MockAgentOptions)
src/interceptors/ClientRequest/agents.ts:35
Methodconstructor
(options: MockAgentOptions)
src/interceptors/ClientRequest/agents.ts:76
Methodconstructor
(options: MockHttpSocketOptions)
src/interceptors/ClientRequest/MockHttpSocket.ts:70
MethodconstructorCall
(args: Array<unknown>, next: NextFunction<Target>)
src/utils/createProxy.ts:4
MethodcreateConnection
(options: any, callback: any)
test/modules/http/compliance/https-custom-agent.test.ts:68
MethodcreateConnection
(options: any, callback: any)
test/modules/http/compliance/http-custom-agent.test.ts:32
MethodcreateConnection
(options: any, callback: any)
test/modules/http/compliance/http-custom-agent.test.ts:49
MethodcreateConnection
()
src/interceptors/WebSocket/index.ts:94
MethodcreateConnection
(options: any, callback: any)
src/interceptors/ClientRequest/agents.ts:42
MethodcreateConnection
(options: any, callback: any)
src/interceptors/ClientRequest/agents.ts:83
FunctioncreateRequest
()
test/modules/XMLHttpRequest/regressions/xhr-location-undefined.test.ts:31
MethoddefaultPrevented
()
src/interceptors/WebSocket/utils/events.ts:29
MethoddefaultPrevented
()
src/interceptors/WebSocket/utils/events.ts:81
FunctionerrorWith
()
src/RequestController.test.ts:11
FunctionerrorWith
(reason)
src/utils/handleRequest.ts:162
MethoderrorWith
* Error this request with the given reason. * * @example * controller.errorWith() * controller.errorWith(new Error('Oops!')) * controll
src/RequestController.ts:94
MethoderrorWith
(error?: Error)
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:583
MethoderrorWith
(reason)
src/interceptors/ClientRequest/index.ts:163
MethodfetchProxy
(input, init)
src/interceptors/fetch/index.ts:35
MethodfinalizeResponse
()
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:422
Methodfinish
()
_http_common.d.ts:45
FunctiongetProperty
(data, next)
src/utils/createProxy.test.ts:49
MethodgetProperty
( data: [propertyName: string | symbol, receiver: Target], next: NextFunction<void> )
src/utils/createProxy.ts:17
MethodhandleChildMessage
(message)
src/RemoteHttpInterceptor.ts:155
MethodhandleIncomingMessage
(event: MessageEvent<WebSocketData>)
src/interceptors/WebSocket/WebSocketServerConnection.ts:338
FunctionhandleProtocols
(protocols)
test/modules/WebSocket/compliance/websocket.protocol.test.ts:16
FunctionhandleRequest
(_req, res)
test/modules/fetch/intercept/fetch.browser.test.ts:12
FunctionhandleUserRequest
(_req, res)
test/modules/fetch/intercept/fetch.test.ts:14
FunctionhandleUserRequest
(_req, res)
test/modules/http/intercept/http.request.test.ts:11
FunctionhandleUserRequest
(req, res)
test/modules/http/intercept/https.request.test.ts:11
FunctionhandleUserRequest
(_req, res)
test/modules/XMLHttpRequest/intercept/XMLHttpRequest.test.ts:29
Functionhandler
(request, response, next, options)
test/modules/http/compliance/http-rate-limit.test.ts:14
FunctionhttpRequest
( url: string, options?: RequestOptions, body?: string )
test/helpers.ts:59
FunctionhttpsRequest
( url: string, options?: RequestOptions, body?: string )
test/helpers.ts:86
MethodinitEvent
(type: string, bubbles?: boolean, cancelable?: boolean)
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:39
MethodloadExample
(entry: string, options?: CompilationOptions)
test/playwright.extend.ts:16
MethodmethodCall
( this: Target, data: [methodName: F, args: Array<unknown>], next: NextFunction<void> )
src/utils/createProxy.ts:6
FunctionnextTick
(callback: () => void)
src/utils/nextTick.ts:1
Methodoff
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:76
Methodon
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:52
FunctiononAbort
()
src/utils/handleRequest.ts:93
MethodonRequestBody
(chunk: Buffer)
src/interceptors/ClientRequest/MockHttpSocket.ts:621
MethodonRequestEnd
()
src/interceptors/ClientRequest/MockHttpSocket.ts:630
MethodonResponseBody
(chunk: Buffer)
src/interceptors/ClientRequest/MockHttpSocket.ts:709
MethodonResponseEnd
()
src/interceptors/ClientRequest/MockHttpSocket.ts:718
Methodonce
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:65
Methodonclose
(listener: WebSocketEventListener<CloseEvent> | null)
src/interceptors/WebSocket/WebSocketOverride.ts:119
Methodonerror
(listener: WebSocketEventListener | null)
src/interceptors/WebSocket/WebSocketOverride.ts:108
Methodonmessage
( listener: WebSocketEventListener<MessageEvent<WebSocketData>> | null )
src/interceptors/WebSocket/WebSocketOverride.ts:92
Methodonopen
(listener: WebSocketEventListener | null)
src/interceptors/WebSocket/WebSocketOverride.ts:81
Functionpassthrough
()
src/RequestController.test.ts:9
Functionpassthrough
* @note Intentionally empty passthrough handle. * This controller is created within another controller and we only need * to kno
src/utils/handleRequest.ts:158
Methodpassthrough
* Perform this request as-is.
src/RequestController.ts:40
Methodpassthrough
()
src/interceptors/ClientRequest/index.ts:157
MethodpreventDefault
()
src/interceptors/WebSocket/utils/events.ts:37
MethodpreventDefault
()
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:45
FunctionpushCallback
({ type, loaded, total })
test/modules/XMLHttpRequest/compliance/xhr-upload.browser.runtime.js:23
← previousnext →201–300 of 345, ranked by callers