Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mswjs/interceptors
/ functions
Functions
345 in github.com/mswjs/interceptors
⨍
Functions
345
◇
Types & classes
133
Method
checkEnvironment
()
src/interceptors/fetch/index.ts:26
Method
checkEnvironment
()
src/interceptors/WebSocket/index.ts:79
Method
checkEnvironment
()
src/interceptors/XMLHttpRequest/index.ts:17
Method
close
(code: number, reason?: string)
src/interceptors/WebSocket/WebSocketClassTransport.ts:108
Method
close
* Close the actual server connection.
src/interceptors/WebSocket/WebSocketServerConnection.ts:295
Method
close
* 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
Method
composedPath
()
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:35
Function
construct
(target, args, newTarget)
src/interceptors/XMLHttpRequest/XMLHttpRequestProxy.ts:23
Function
construct
(target, args, newTarget)
src/interceptors/ClientRequest/utils/recordRawHeaders.ts:116
Method
constructor
(input, init)
test/modules/fetch/fetch-memory-worker.js:20
Method
constructor
(public address: string, public port: number)
test/modules/http/compliance/http-errors.test.ts:150
Method
constructor
(response: IncomingMessage)
test/modules/http/compliance/http-res-read-multiple-times.test.ts:45
Method
constructor
()
src/BatchInterceptor.test.ts:11
Method
constructor
()
src/BatchInterceptor.test.ts:17
Method
constructor
()
src/BatchInterceptor.test.ts:118
Method
constructor
(options: BatchInterceptorOptions<InterceptorList>)
src/BatchInterceptor.ts:32
Method
constructor
(message?: string)
src/InterceptorError.ts:2
Method
constructor
( protected readonly request: Request, protected readonly source: RequestControllerSource )
src/RequestController.ts:25
Method
constructor
(private readonly symbol: symbol)
src/Interceptor.ts:52
Method
constructor
()
src/RemoteHttpInterceptor.ts:37
Method
constructor
(options: RemoveResolverOptions)
src/RemoteHttpInterceptor.ts:147
Method
constructor
(public name: string)
src/utils/createProxy.test.ts:7
Method
constructor
()
src/utils/cloneObject.test.ts:40
Method
constructor
(input: URL | RequestInfo, init?: FetchRequestInit)
src/utils/fetchUtils.ts:46
Method
constructor
(body?: BodyInit | null, init: FetchResponseInit = {})
src/utils/fetchUtils.ts:286
Method
constructor
()
src/interceptors/fetch/index.ts:22
Method
constructor
( transformStreams: Array<TransformStream>, ...strategies: Array<QueuingStrategy> )
src/interceptors/fetch/utils/decompression.ts:7
Method
constructor
()
src/interceptors/fetch/utils/brotli-decompress.browser.ts:2
Method
constructor
()
src/interceptors/fetch/utils/brotli-decompress.ts:4
Method
constructor
(protected readonly options: MockSocketOptions)
src/interceptors/Socket/MockSocket.ts:21
Method
constructor
(protected readonly socket: WebSocketOverride)
src/interceptors/WebSocket/WebSocketClassTransport.ts:19
Method
constructor
()
src/interceptors/WebSocket/index.ts:75
Method
constructor
( private readonly client: WebSocketOverride, private readonly transport: WebSocketClassTransport,
src/interceptors/WebSocket/WebSocketServerConnection.ts:63
Method
constructor
( public readonly socket: WebSocket, private readonly transport: WebSocketTransport )
src/interceptors/WebSocket/WebSocketClientConnection.ts:49
Method
constructor
(url: string | URL, protocols?: string | Array<string>)
src/interceptors/WebSocket/WebSocketOverride.ts:46
Method
constructor
(type: string, init: MessageEventInit<T>)
src/interceptors/WebSocket/utils/events.ts:15
Method
constructor
(type: string, init: CloseEventInit = {})
src/interceptors/WebSocket/utils/events.ts:55
Method
constructor
(type: string, init: CloseEventInit = {})
src/interceptors/WebSocket/utils/events.ts:67
Method
constructor
()
src/interceptors/XMLHttpRequest/index.ts:13
Method
constructor
( readonly initialRequest: XMLHttpRequest, public logger: Logger )
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:61
Method
constructor
( type: string, options?: { target: EventTarget; currentTarget: EventTarget } )
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:25
Method
constructor
(type: string, init?: ProgressEventInit)
src/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.ts:9
Method
constructor
()
src/interceptors/ClientRequest/index.ts:23
Method
constructor
(options: MockAgentOptions)
src/interceptors/ClientRequest/agents.ts:35
Method
constructor
(options: MockAgentOptions)
src/interceptors/ClientRequest/agents.ts:76
Method
constructor
(options: MockHttpSocketOptions)
src/interceptors/ClientRequest/MockHttpSocket.ts:70
Method
constructorCall
(args: Array<unknown>, next: NextFunction<Target>)
src/utils/createProxy.ts:4
Method
createConnection
(options: any, callback: any)
test/modules/http/compliance/https-custom-agent.test.ts:68
Method
createConnection
(options: any, callback: any)
test/modules/http/compliance/http-custom-agent.test.ts:32
Method
createConnection
(options: any, callback: any)
test/modules/http/compliance/http-custom-agent.test.ts:49
Method
createConnection
()
src/interceptors/WebSocket/index.ts:94
Method
createConnection
(options: any, callback: any)
src/interceptors/ClientRequest/agents.ts:42
Method
createConnection
(options: any, callback: any)
src/interceptors/ClientRequest/agents.ts:83
Function
createRequest
()
test/modules/XMLHttpRequest/regressions/xhr-location-undefined.test.ts:31
Method
defaultPrevented
()
src/interceptors/WebSocket/utils/events.ts:29
Method
defaultPrevented
()
src/interceptors/WebSocket/utils/events.ts:81
Function
errorWith
()
src/RequestController.test.ts:11
Function
errorWith
(reason)
src/utils/handleRequest.ts:162
Method
errorWith
* Error this request with the given reason. * * @example * controller.errorWith() * controller.errorWith(new Error('Oops!')) * controll
src/RequestController.ts:94
Method
errorWith
(error?: Error)
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:583
Method
errorWith
(reason)
src/interceptors/ClientRequest/index.ts:163
Method
fetchProxy
(input, init)
src/interceptors/fetch/index.ts:35
Method
finalizeResponse
()
src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts:422
Method
finish
()
_http_common.d.ts:45
Function
getProperty
(data, next)
src/utils/createProxy.test.ts:49
Method
getProperty
( data: [propertyName: string | symbol, receiver: Target], next: NextFunction<void> )
src/utils/createProxy.ts:17
Method
handleChildMessage
(message)
src/RemoteHttpInterceptor.ts:155
Method
handleIncomingMessage
(event: MessageEvent<WebSocketData>)
src/interceptors/WebSocket/WebSocketServerConnection.ts:338
Function
handleProtocols
(protocols)
test/modules/WebSocket/compliance/websocket.protocol.test.ts:16
Function
handleRequest
(_req, res)
test/modules/fetch/intercept/fetch.browser.test.ts:12
Function
handleUserRequest
(_req, res)
test/modules/fetch/intercept/fetch.test.ts:14
Function
handleUserRequest
(_req, res)
test/modules/http/intercept/http.request.test.ts:11
Function
handleUserRequest
(req, res)
test/modules/http/intercept/https.request.test.ts:11
Function
handleUserRequest
(_req, res)
test/modules/XMLHttpRequest/intercept/XMLHttpRequest.test.ts:29
Function
handler
(request, response, next, options)
test/modules/http/compliance/http-rate-limit.test.ts:14
Function
httpRequest
( url: string, options?: RequestOptions, body?: string )
test/helpers.ts:59
Function
httpsRequest
( url: string, options?: RequestOptions, body?: string )
test/helpers.ts:86
Method
initEvent
(type: string, bubbles?: boolean, cancelable?: boolean)
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:39
Method
loadExample
(entry: string, options?: CompilationOptions)
test/playwright.extend.ts:16
Method
methodCall
( this: Target, data: [methodName: F, args: Array<unknown>], next: NextFunction<void> )
src/utils/createProxy.ts:6
Function
nextTick
(callback: () => void)
src/utils/nextTick.ts:1
Method
off
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:76
Method
on
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:52
Function
onAbort
()
src/utils/handleRequest.ts:93
Method
onRequestBody
(chunk: Buffer)
src/interceptors/ClientRequest/MockHttpSocket.ts:621
Method
onRequestEnd
()
src/interceptors/ClientRequest/MockHttpSocket.ts:630
Method
onResponseBody
(chunk: Buffer)
src/interceptors/ClientRequest/MockHttpSocket.ts:709
Method
onResponseEnd
()
src/interceptors/ClientRequest/MockHttpSocket.ts:718
Method
once
( event: EventName, listener: Listener<Events[EventName]> )
src/BatchInterceptor.ts:65
Method
onclose
(listener: WebSocketEventListener<CloseEvent> | null)
src/interceptors/WebSocket/WebSocketOverride.ts:119
Method
onerror
(listener: WebSocketEventListener | null)
src/interceptors/WebSocket/WebSocketOverride.ts:108
Method
onmessage
( listener: WebSocketEventListener<MessageEvent<WebSocketData>> | null )
src/interceptors/WebSocket/WebSocketOverride.ts:92
Method
onopen
(listener: WebSocketEventListener | null)
src/interceptors/WebSocket/WebSocketOverride.ts:81
Function
passthrough
()
src/RequestController.test.ts:9
Function
passthrough
* @note Intentionally empty passthrough handle. * This controller is created within another controller and we only need * to kno
src/utils/handleRequest.ts:158
Method
passthrough
* Perform this request as-is.
src/RequestController.ts:40
Method
passthrough
()
src/interceptors/ClientRequest/index.ts:157
Method
preventDefault
()
src/interceptors/WebSocket/utils/events.ts:37
Method
preventDefault
()
src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts:45
Function
pushCallback
({ type, loaded, total })
test/modules/XMLHttpRequest/compliance/xhr-upload.browser.runtime.js:23
← previous
next →
201–300 of 345, ranked by callers