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
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
pendingHandler | () => void | PromiseLike<unknown> |
返回:
void