test: improve test coverage for Request.continue (#4096)

Drive-by: add clarification to docs/api.md regarding
chaning "URL".

References #4030
This commit is contained in:
Andrey Lushnikov
2019-03-05 14:57:15 -08:00
committed by GitHub
parent f32d77e074
commit 1623bef264
3 changed files with 66 additions and 15 deletions

View File

@@ -3214,7 +3214,7 @@ Exception is immediately thrown if the request interception is not enabled.
#### request.continue([overrides])
- `overrides` <[Object]> Optional request overwrites, which can be one of the following:
- `url` <[string]> If set, the request url will be changed
- `url` <[string]> If set, the request url will be changed. This is not a redirect. The request will be silently forwarded to the new url. For example, the address bar will show the original url.
- `method` <[string]> If set changes the request method (e.g. `GET` or `POST`)
- `postData` <[string]> If set changes the post data of request
- `headers` <[Object]> If set changes the request HTTP headers