docs: update route callback type for java (#5324)

This commit is contained in:
Yury Semikhatsky 2021-02-05 09:39:03 -08:00 committed by GitHub
parent 28e5975772
commit 494f0f63cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -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

View file

@ -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]>