Skip to content

Commit

Permalink
docs: update route callback type for java (#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 5, 2021
1 parent 28e5975 commit 494f0f6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/src/api/class-browsercontext.md
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions docs/src/api/class-page.md
Expand Up @@ -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]>

Expand Down Expand Up @@ -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]>

Expand Down

0 comments on commit 494f0f6

Please sign in to comment.