From abf1219fc19ff1a34c66b67e8d5cc872faaa3920 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 13 Apr 2020 18:58:03 -0700 Subject: [PATCH] docs(api.md): string values should be quoted (#1766) --- docs/api.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/api.md b/docs/api.md index 50302b74c4..31c0a066b3 100644 --- a/docs/api.md +++ b/docs/api.md @@ -3467,21 +3467,21 @@ Whenever a network route is set up with [page.route(url, handler)](#pagerouteurl #### route.abort([errorCode]) - `errorCode` <[string]> Optional error code. Defaults to `failed`, could be one of the following: - - `aborted` - An operation was aborted (due to user action) - - `accessdenied` - Permission to access a resource, other than the network, was denied - - `addressunreachable` - The IP address is unreachable. This usually means + - `'aborted'` - An operation was aborted (due to user action) + - `'accessdenied'` - Permission to access a resource, other than the network, was denied + - `'addressunreachable'` - The IP address is unreachable. This usually means that there is no route to the specified host or network. - - `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). - - `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). - - `connectionfailed` - A connection attempt failed. - - `connectionrefused` - A connection attempt was refused. - - `connectionreset` - A connection was reset (corresponding to a TCP RST). - - `internetdisconnected` - The Internet connection has been lost. - - `namenotresolved` - The host name could not be resolved. - - `timedout` - An operation timed out. - - `failed` - A generic failure occurred. + - `'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). + - `'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). + - `'connectionfailed'` - A connection attempt failed. + - `'connectionrefused'` - A connection attempt was refused. + - `'connectionreset'` - A connection was reset (corresponding to a TCP RST). + - `'internetdisconnected'` - The Internet connection has been lost. + - `'namenotresolved'` - The host name could not be resolved. + - `'timedout'` - An operation timed out. + - `'failed'` - A generic failure occurred. - returns: <[Promise]> Aborts the route's request.