feat: Request.isInterceptionResolutionHandled
This commit is contained in:
parent
f126123369
commit
1eac99e0ba
@ -33,6 +33,12 @@ export const _headers = r => () => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {(_1: HTTPRequest) => () => boolean}
|
||||||
|
*/
|
||||||
|
export const isInterceptResolutionHandled = r => () =>
|
||||||
|
r.isInterceptResolutionHandled()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {(_1: HTTPRequest) => () => boolean}
|
* @type {(_1: HTTPRequest) => () => boolean}
|
||||||
*/
|
*/
|
||||||
|
@ -14,6 +14,7 @@ module Puppeteer.HTTP.Request
|
|||||||
, method
|
, method
|
||||||
, resourceType
|
, resourceType
|
||||||
, url
|
, url
|
||||||
|
, isInterceptResolutionHandled
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Prelude
|
import Prelude
|
||||||
@ -72,6 +73,7 @@ prepareContinueRequestOverrides { headers: headers', method: method', postData:
|
|||||||
, url: FFI.maybeToUndefined url'
|
, url: FFI.maybeToUndefined url'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreign import isInterceptResolutionHandled :: Request -> Effect Boolean
|
||||||
foreign import isNavigation :: Request -> Effect Boolean
|
foreign import isNavigation :: Request -> Effect Boolean
|
||||||
foreign import method :: Request -> Effect String
|
foreign import method :: Request -> Effect String
|
||||||
foreign import resourceType :: Request -> Effect String
|
foreign import resourceType :: Request -> Effect String
|
||||||
|
Loading…
Reference in New Issue
Block a user