From 337eec11738ee2057889b67ad27101591fb56d7a Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 6 Feb 2020 16:53:51 -0800 Subject: [PATCH] fix(docs): missing arguments for functions in page.route --- docs/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api.md b/docs/api.md index 6bc6c78ccb..a70d06bb97 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1202,9 +1202,9 @@ The `format` options are: - returns: <[Promise]<[Response]>> Promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect. #### page.route(url, handler) -- `url` <[string]|[RegExp]|[Function]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing. -- `handler` <[Function]> handler function to router the request. -- returns: <[Promise]<[void]>>. +- `url` <[string]|[RegExp]|[function]\([string]\):[boolean]> A glob pattern, regex pattern or predicate receiving [URL] to match while routing. +- `handler` <[function]\([Request]\)> handler function to router the request. +- returns: <[Promise]>. Routing activates the request interception and enables `request.abort`, `request.continue` and `request.respond` methods on the request. This provides the capability to modify network requests that are made by a page.