mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: document how to import DEFAULT_INTERCEPT_RESOLUTION_PRIORITY (#9324)
Closes #9236
This commit is contained in:
parent
cb01c5c043
commit
b4bee49152
@ -175,7 +175,7 @@ Intercept Mode:
|
||||
- In the event of a tie, `abort` > `respond` > `continue`.
|
||||
|
||||
For standardization, when specifying a Cooperative Intercept Mode priority use
|
||||
`0` or `DEFAULT_INTERCEPT_RESOLUTION_PRIORITY` (exported from `HTTPRequest`)
|
||||
`0` or `DEFAULT_INTERCEPT_RESOLUTION_PRIORITY` (`import {DEFAULT_INTERCEPT_RESOLUTION_PRIORITY} from 'puppeteer'`)
|
||||
unless you have a clear reason to use a higher priority. This gracefully prefers
|
||||
`respond` over `continue` and `abort` over `respond` and allows other handlers
|
||||
to work cooperatively. If you do intentionally want to use a different priority,
|
||||
|
Loading…
Reference in New Issue
Block a user