mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(api.md): string values should be quoted (#1766)
This commit is contained in:
parent
1c1d81cf3a
commit
abf1219fc1
28
docs/api.md
28
docs/api.md
@ -3467,21 +3467,21 @@ Whenever a network route is set up with [page.route(url, handler)](#pagerouteurl
|
|||||||
#### route.abort([errorCode])
|
#### route.abort([errorCode])
|
||||||
- `errorCode` <[string]> Optional error code. Defaults to `failed`, could be
|
- `errorCode` <[string]> Optional error code. Defaults to `failed`, could be
|
||||||
one of the following:
|
one of the following:
|
||||||
- `aborted` - An operation was aborted (due to user action)
|
- `'aborted'` - An operation was aborted (due to user action)
|
||||||
- `accessdenied` - Permission to access a resource, other than the network, was denied
|
- `'accessdenied'` - Permission to access a resource, other than the network, was denied
|
||||||
- `addressunreachable` - The IP address is unreachable. This usually means
|
- `'addressunreachable'` - The IP address is unreachable. This usually means
|
||||||
that there is no route to the specified host or network.
|
that there is no route to the specified host or network.
|
||||||
- `blockedbyclient` - The client chose to block the request.
|
- `'blockedbyclient'` - The client chose to block the request.
|
||||||
- `blockedbyresponse` - The request failed because the response was delivered along with requirements which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor checks, for instance).
|
- `'blockedbyresponse'` - The request failed because the response was delivered along with requirements which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor checks, for instance).
|
||||||
- `connectionaborted` - A connection timed out as a result of not receiving an ACK for data sent.
|
- `'connectionaborted'` - A connection timed out as a result of not receiving an ACK for data sent.
|
||||||
- `connectionclosed` - A connection was closed (corresponding to a TCP FIN).
|
- `'connectionclosed'` - A connection was closed (corresponding to a TCP FIN).
|
||||||
- `connectionfailed` - A connection attempt failed.
|
- `'connectionfailed'` - A connection attempt failed.
|
||||||
- `connectionrefused` - A connection attempt was refused.
|
- `'connectionrefused'` - A connection attempt was refused.
|
||||||
- `connectionreset` - A connection was reset (corresponding to a TCP RST).
|
- `'connectionreset'` - A connection was reset (corresponding to a TCP RST).
|
||||||
- `internetdisconnected` - The Internet connection has been lost.
|
- `'internetdisconnected'` - The Internet connection has been lost.
|
||||||
- `namenotresolved` - The host name could not be resolved.
|
- `'namenotresolved'` - The host name could not be resolved.
|
||||||
- `timedout` - An operation timed out.
|
- `'timedout'` - An operation timed out.
|
||||||
- `failed` - A generic failure occurred.
|
- `'failed'` - A generic failure occurred.
|
||||||
- returns: <[Promise]>
|
- returns: <[Promise]>
|
||||||
|
|
||||||
Aborts the route's request.
|
Aborts the route's request.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user