docs: update route callback type for java (#5324)
This commit is contained in:
parent
28e5975772
commit
494f0f63cc
|
|
@ -596,10 +596,17 @@ Enabling routing disables http cache.
|
|||
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
|
||||
|
||||
### param: BrowserContext.route.handler
|
||||
* langs: js, python
|
||||
- `handler` <[function]\([Route], [Request]\)>
|
||||
|
||||
handler function to route the request.
|
||||
|
||||
### param: BrowserContext.route.handler
|
||||
* langs: csharp, java
|
||||
- `handler` <[function]\([Route]\)>
|
||||
|
||||
handler function to route the request.
|
||||
|
||||
## method: BrowserContext.setDefaultNavigationTimeout
|
||||
|
||||
This setting will change the default maximum navigation time for the following methods and related shortcuts:
|
||||
|
|
@ -735,10 +742,17 @@ A glob pattern, regex pattern or predicate receiving [URL] used to register a ro
|
|||
[`method: BrowserContext.route`].
|
||||
|
||||
### param: BrowserContext.unroute.handler
|
||||
* langs: js, python
|
||||
- `handler` <[function]\([Route], [Request]\)>
|
||||
|
||||
Optional handler function used to register a routing with [`method: BrowserContext.route`].
|
||||
|
||||
### param: BrowserContext.unroute.handler
|
||||
* langs: csharp, java
|
||||
- `handler` <[function]\([Route]\)>
|
||||
|
||||
Optional handler function used to register a routing with [`method: BrowserContext.route`].
|
||||
|
||||
## async method: BrowserContext.waitForEvent
|
||||
* langs: csharp, js, python
|
||||
- alias-python: expect_event
|
||||
|
|
|
|||
|
|
@ -1817,10 +1817,17 @@ Enabling routing disables http cache.
|
|||
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
|
||||
|
||||
### param: Page.route.handler
|
||||
* langs: js, python
|
||||
- `handler` <[function]\([Route], [Request]\)>
|
||||
|
||||
handler function to route the request.
|
||||
|
||||
### param: Page.route.handler
|
||||
* langs: csharp, java
|
||||
- `handler` <[function]\([Route]\)>
|
||||
|
||||
handler function to route the request.
|
||||
|
||||
## async method: Page.screenshot
|
||||
- returns: <[Buffer]>
|
||||
|
||||
|
|
@ -2154,10 +2161,17 @@ the [`param: url`].
|
|||
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
|
||||
|
||||
### param: Page.unroute.handler
|
||||
* langs: js, python
|
||||
- `handler` <[function]\([Route], [Request]\)>
|
||||
|
||||
Optional handler function to route the request.
|
||||
|
||||
### param: Page.unroute.handler
|
||||
* langs: csharp, java
|
||||
- `handler` <[function]\([Route]\)>
|
||||
|
||||
Optional handler function to route the request.
|
||||
|
||||
## method: Page.url
|
||||
- returns: <[string]>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue