OLD | NEW |
---|---|
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [{ | 3 "domains": [{ |
4 "domain": "Inspector", | 4 "domain": "Inspector", |
5 "experimental": true, | 5 "experimental": true, |
6 "types": [], | 6 "types": [], |
7 "commands": [ | 7 "commands": [ |
8 { | 8 { |
9 "name": "enable", | 9 "name": "enable", |
10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1115 "id": "LoaderId", | 1115 "id": "LoaderId", |
1116 "type": "string", | 1116 "type": "string", |
1117 "description": "Unique loader identifier." | 1117 "description": "Unique loader identifier." |
1118 }, | 1118 }, |
1119 { | 1119 { |
1120 "id": "RequestId", | 1120 "id": "RequestId", |
1121 "type": "string", | 1121 "type": "string", |
1122 "description": "Unique request identifier." | 1122 "description": "Unique request identifier." |
1123 }, | 1123 }, |
1124 { | 1124 { |
1125 "id": "InterceptionId", | |
1126 "type": "string", | |
1127 "description": "Unique intercepted request identifier." | |
1128 }, | |
1129 { | |
1130 "id": "ErrorReason", | |
1131 "type": "string", | |
1132 "enum": ["Failed", "Aborted", "TimedOut", "AccessDenied", "Conne ctionClosed", "ConnectionReset", "ConnectionRefused", "ConnectionAborted", "Conn ectionFailed", "NameNotResolved", "InternetDisconnected", "AddressUnreachable"], | |
1133 "description": "Network level fetch failure reason." | |
1134 }, | |
1135 { | |
1125 "id": "Timestamp", | 1136 "id": "Timestamp", |
1126 "type": "number", | 1137 "type": "number", |
1127 "description": "Number of seconds since epoch." | 1138 "description": "Number of seconds since epoch." |
1128 }, | 1139 }, |
1129 { | 1140 { |
1130 "id": "Headers", | 1141 "id": "Headers", |
1131 "type": "object", | 1142 "type": "object", |
1132 "description": "Request / response headers as keys / values of J SON object." | 1143 "description": "Request / response headers as keys / values of J SON object." |
1133 }, | 1144 }, |
1134 { | 1145 { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1498 { | 1509 { |
1499 "name": "getCertificate", | 1510 "name": "getCertificate", |
1500 "description": "Returns the DER-encoded certificate.", | 1511 "description": "Returns the DER-encoded certificate.", |
1501 "parameters": [ | 1512 "parameters": [ |
1502 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } | 1513 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } |
1503 ], | 1514 ], |
1504 "returns": [ | 1515 "returns": [ |
1505 { "name": "tableNames", "type": "array", "items": { "type": "string" } } | 1516 { "name": "tableNames", "type": "array", "items": { "type": "string" } } |
1506 ], | 1517 ], |
1507 "experimental": true | 1518 "experimental": true |
1519 }, | |
1520 { | |
1521 "name": "enableRequestInterception", | |
1522 "parameters": [ | |
1523 { "name": "enabled", "type": "boolean", "description": "Whet her or not HTTP requests should be intercepted and Network.requestIntercepted ev ents sent." } | |
1524 ], | |
1525 "experimental": true | |
1526 }, | |
1527 { | |
1528 "name": "continueInterceptedRequest", | |
1529 "description": "Response to Network.requestIntercepted which eit her modifies the request to continue with any modifications, or blocks it, or co mpletes it with the provided response bytes. If a network fetch occurs as a resu lt which encounters a redirect an additional Network.requestIntercepted event wi ll be sent with the same InterceptionId.", | |
1530 "parameters": [ | |
1531 { "name": "interceptionId", "$ref": "InterceptionId" }, | |
1532 { "name": "errorReason", "$ref": "ErrorReason", "optional": true, "description": "If set this causes the request to fail with the given reas on." }, | |
1533 { "name": "rawResponse", "type": "string", "optional": true, "description": "If set the requests completes using with the provided base64 en coded raw response, including HTTP status line and headers etc..." }, | |
1534 { "name": "url", "type": "string", "optional": true, "descri ption": "If set the request url will be modified in a way that's not observable by page." }, | |
1535 { "name": "method", "type": "string", "optional": true, "des cription": "If set this allows the request method to be overridden."}, | |
1536 { "name": "postData", "type": "string", "optional": true, "d escription": "If set this allows postData to be set."}, | |
1537 { "name": "headers", "$ref": "Headers", "optional": true, "d escription": "If set this allows the request headers to be changed."} | |
1538 ], | |
1539 "experimental": true | |
1508 } | 1540 } |
1509 ], | 1541 ], |
1510 "events": [ | 1542 "events": [ |
1511 { | 1543 { |
1512 "name": "resourceChangedPriority", | 1544 "name": "resourceChangedPriority", |
1513 "description": "Fired when resource loading priority is changed" , | 1545 "description": "Fired when resource loading priority is changed" , |
1514 "parameters": [ | 1546 "parameters": [ |
1515 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1547 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
1516 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, | 1548 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, |
1517 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } | 1549 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1658 "name": "eventSourceMessageReceived", | 1690 "name": "eventSourceMessageReceived", |
1659 "description": "Fired when EventSource message is received.", | 1691 "description": "Fired when EventSource message is received.", |
1660 "parameters": [ | 1692 "parameters": [ |
1661 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1693 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
1662 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, | 1694 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, |
1663 { "name": "eventName", "type": "string", "description": "Mes sage type." }, | 1695 { "name": "eventName", "type": "string", "description": "Mes sage type." }, |
1664 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, | 1696 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, |
1665 { "name": "data", "type": "string", "description": "Message content." } | 1697 { "name": "data", "type": "string", "description": "Message content." } |
1666 ], | 1698 ], |
1667 "experimental": true | 1699 "experimental": true |
1700 }, | |
1701 { | |
1702 "name": "requestIntercepted", | |
1703 "description": "Details of an intercepted HTTP request, which mu st be either allowed, blocked, modified or mocked.", | |
1704 "parameters": [ | |
1705 { "name": "InterceptionId", "$ref": "InterceptionId", "descr iption": "Each request blink makes will have a unique id, however if any redirec ts are encountered while processing that fetch, they will be reported with the s ame id as the original fetch." }, | |
dgozman
2017/05/30 21:44:27
nit: blink -> page
alex clarke (OOO till 29th)
2017/05/31 15:52:02
Done.
| |
1706 { "name": "request", "$ref": "Request" }, | |
1707 { "name": "redirectHeaders", "$ref": "Headers", "optional": true, "description": "HTTP response headers, only sent if a redirect was interce pted." }, | |
1708 { "name": "redirectStatusCode", "type": "integer", "optional ": true, "description": "HTTP response code, only sent if a redirect was interce pted." }, | |
1709 { "name": "redirectUrl", "optional": true, "type": "string", "description": "Redirect location, only sent if a redirect was intercepted."} | |
1710 ], | |
1711 "experimental": true | |
1668 } | 1712 } |
1669 ] | 1713 ] |
1670 }, | 1714 }, |
1671 { | 1715 { |
1672 "domain": "Database", | 1716 "domain": "Database", |
1673 "experimental": true, | 1717 "experimental": true, |
1674 "types": [ | 1718 "types": [ |
1675 { | 1719 { |
1676 "id": "DatabaseId", | 1720 "id": "DatabaseId", |
1677 "type": "string", | 1721 "type": "string", |
(...skipping 3012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4690 "parameters": [ | 4734 "parameters": [ |
4691 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | 4735 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } |
4692 ], | 4736 ], |
4693 "returns": [ | 4737 "returns": [ |
4694 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } | 4738 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } |
4695 ] | 4739 ] |
4696 } | 4740 } |
4697 ] | 4741 ] |
4698 }] | 4742 }] |
4699 } | 4743 } |
OLD | NEW |