feat: Request.isInterceptionResolutionHandled

This commit is contained in:
orion 2023-10-07 11:35:17 -05:00
parent f126123369
commit 1eac99e0ba
Signed by: orion
GPG Key ID: 6D4165AE4C928719
2 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,12 @@ export const _headers = r => () => {
)
}
/**
* @type {(_1: HTTPRequest) => () => boolean}
*/
export const isInterceptResolutionHandled = r => () =>
r.isInterceptResolutionHandled()
/**
* @type {(_1: HTTPRequest) => () => boolean}
*/

View File

@ -14,6 +14,7 @@ module Puppeteer.HTTP.Request
, method
, resourceType
, url
, isInterceptResolutionHandled
) where
import Prelude
@ -72,6 +73,7 @@ prepareContinueRequestOverrides { headers: headers', method: method', postData:
, url: FFI.maybeToUndefined url'
}
foreign import isInterceptResolutionHandled :: Request -> Effect Boolean
foreign import isNavigation :: Request -> Effect Boolean
foreign import method :: Request -> Effect String
foreign import resourceType :: Request -> Effect String