Skip to main content
Version: 23.10.1

HTTPRequest.enqueueInterceptAction() 方法

¥HTTPRequest.enqueueInterceptAction() method

将异步请求处理程序添加到处理队列。延迟处理程序不保证以任何特定顺序执行,但保证它们在请求拦截完成之前解析。

¥Adds an async request handler to the processing queue. Deferred handlers are not guaranteed to execute in any particular order, but they are guaranteed to resolve before the request interception is finalized.

签名

¥Signature

class HTTPRequest {
enqueueInterceptAction(
pendingHandler: () => void | PromiseLike<unknown>,
): void;
}

参数

¥Parameters

范围

类型

描述

pendingHandler

() => 无效 | PromiseLike<未知>

Returns:

void