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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1105 "id": "LoaderId", | 1105 "id": "LoaderId", |
1106 "type": "string", | 1106 "type": "string", |
1107 "description": "Unique loader identifier." | 1107 "description": "Unique loader identifier." |
1108 }, | 1108 }, |
1109 { | 1109 { |
1110 "id": "RequestId", | 1110 "id": "RequestId", |
1111 "type": "string", | 1111 "type": "string", |
1112 "description": "Unique request identifier." | 1112 "description": "Unique request identifier." |
1113 }, | 1113 }, |
1114 { | 1114 { |
1115 "id": "InterceptId", | |
dgozman
2017/05/22 22:27:04
InterceptionId ?
alex clarke (OOO till 29th)
2017/05/23 15:46:56
Done.
| |
1116 "type": "string", | |
1117 "description": "Unique intercepted request identifier." | |
1118 }, | |
1119 { | |
1120 "id": "ErrorReason", | |
1121 "type": "string", | |
1122 "enum": ["Failed", "Aborted", "TimedOut", "AccessDenied", "Conne ctionClosed", "ConnectionReset", "ConnectionRefused", "ConnectionAborted", "Conn ectionFailed", "NameNotResolved", "InternetDisconnected", "AddressUnreachable"], | |
1123 "description": "Network level fetch failure reason." | |
1124 }, | |
1125 { | |
1115 "id": "Timestamp", | 1126 "id": "Timestamp", |
1116 "type": "number", | 1127 "type": "number", |
1117 "description": "Number of seconds since epoch." | 1128 "description": "Number of seconds since epoch." |
1118 }, | 1129 }, |
1119 { | 1130 { |
1120 "id": "Headers", | 1131 "id": "Headers", |
1121 "type": "object", | 1132 "type": "object", |
1122 "description": "Request / response headers as keys / values of J SON object." | 1133 "description": "Request / response headers as keys / values of J SON object." |
1123 }, | 1134 }, |
1124 { | 1135 { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1488 { | 1499 { |
1489 "name": "getCertificate", | 1500 "name": "getCertificate", |
1490 "description": "Returns the DER-encoded certificate.", | 1501 "description": "Returns the DER-encoded certificate.", |
1491 "parameters": [ | 1502 "parameters": [ |
1492 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } | 1503 { "name": "origin", "type": "string", "description": "Origin to get certificate for." } |
1493 ], | 1504 ], |
1494 "returns": [ | 1505 "returns": [ |
1495 { "name": "tableNames", "type": "array", "items": { "type": "string" } } | 1506 { "name": "tableNames", "type": "array", "items": { "type": "string" } } |
1496 ], | 1507 ], |
1497 "experimental": true | 1508 "experimental": true |
1509 }, | |
1510 { | |
1511 "name": "enableFetchInterception", | |
1512 "parameters": [ | |
1513 { "name": "enabled", "type": "boolean", "description": "Whet her or not HTTP requests should be intercepted and Network.interceptedRequest ev ents sent." } | |
1514 ], | |
1515 "experimental": true | |
1516 }, | |
1517 { | |
1518 "name": "allowRequest", | |
1519 "description": "Response to Network.interceptedRequest which all ows the request to proceed unchanged.", | |
1520 "parameters": [ | |
1521 { "name": "interceptId", "$ref": "InterceptId" } | |
1522 ], | |
1523 "experimental": true | |
1524 }, | |
1525 { | |
1526 "name": "blockRequest", | |
1527 "description": "Response to Network.interceptedRequest which cau ses the request to fail.", | |
1528 "parameters": [ | |
1529 { "name": "interceptId", "$ref": "InterceptId" }, | |
1530 { "name": "errorReason", "$ref": "ErrorReason" } | |
1531 ], | |
1532 "experimental": true | |
1533 }, | |
1534 { | |
1535 "name": "modifyRequest", | |
dgozman
2017/05/22 22:27:04
What do you think about converging these methods i
alex clarke (OOO till 29th)
2017/05/23 15:46:56
I guess it cuts down on the plumbing slightly. Sl
| |
1536 "description": "Response to Network.interceptedRequest which mod ifies any or all fetch parameters before allowing the request to proceed.", | |
1537 "parameters": [ | |
1538 { "name": "interceptId", "$ref": "InterceptId" }, | |
1539 { "name": "url", "type": "string", "optional": true }, | |
1540 { "name": "method", "type": "string", "optional": true }, | |
1541 { "name": "postData", "type": "string", "optional": true }, | |
1542 { "name": "headers", "$ref": "Headers", "optional": true } | |
1543 ], | |
1544 "experimental": true | |
1545 }, | |
1546 { | |
1547 "name": "mockResponse", | |
1548 "description": "Response to Network.interceptedRequest which mak es the request complete with the provided mock response.", | |
1549 "parameters": [ | |
1550 { "name": "interceptId", "$ref": "InterceptId" }, | |
1551 { "name": "rawResponse", "type": "string" } | |
dgozman
2017/05/22 22:27:04
Is this base64-encoded?
alex clarke (OOO till 29th)
2017/05/23 15:46:56
Done.
| |
1552 ], | |
1553 "experimental": true | |
1498 } | 1554 } |
1499 ], | 1555 ], |
1500 "events": [ | 1556 "events": [ |
1501 { | 1557 { |
1502 "name": "resourceChangedPriority", | 1558 "name": "resourceChangedPriority", |
1503 "description": "Fired when resource loading priority is changed" , | 1559 "description": "Fired when resource loading priority is changed" , |
1504 "parameters": [ | 1560 "parameters": [ |
1505 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1561 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
1506 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, | 1562 { "name": "newPriority", "$ref": "ResourcePriority", "descri ption": "New priority" }, |
1507 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } | 1563 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1648 "name": "eventSourceMessageReceived", | 1704 "name": "eventSourceMessageReceived", |
1649 "description": "Fired when EventSource message is received.", | 1705 "description": "Fired when EventSource message is received.", |
1650 "parameters": [ | 1706 "parameters": [ |
1651 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, | 1707 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }, |
1652 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, | 1708 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }, |
1653 { "name": "eventName", "type": "string", "description": "Mes sage type." }, | 1709 { "name": "eventName", "type": "string", "description": "Mes sage type." }, |
1654 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, | 1710 { "name": "eventId", "type": "string", "description": "Messa ge identifier." }, |
1655 { "name": "data", "type": "string", "description": "Message content." } | 1711 { "name": "data", "type": "string", "description": "Message content." } |
1656 ], | 1712 ], |
1657 "experimental": true | 1713 "experimental": true |
1714 }, | |
1715 { | |
1716 "name": "interceptedRequest", | |
dgozman
2017/05/22 22:27:04
We usually name events with noun first: requestInt
alex clarke (OOO till 29th)
2017/05/23 15:46:56
Done.
| |
1717 "description": "Details of an intercepted HTTP request, which mu st be either allowed, blocked, modified or mocked.", | |
1718 "parameters": [ | |
1719 { "name": "interceptId", "$ref": "InterceptId" }, | |
1720 { "name": "request", "$ref": "Request" } | |
1721 ], | |
1722 "experimental": true | |
1723 }, | |
1724 { | |
1725 "name": "interceptedRedirect", | |
1726 "description": "Details of an intercepted HTTP redirect, which m ust be either allowed, blocked, modified or mocked.", | |
1727 "parameters": [ | |
1728 { "name": "interceptId", "$ref": "InterceptId" }, | |
dgozman
2017/05/22 22:27:04
Is this the same id as original request? Would it
alex clarke (OOO till 29th)
2017/05/23 15:46:56
I've merged them but not tried to generate a new i
| |
1729 { "name": "responseHeaders", "$ref": "Headers", "description ": "HTTP response headers." }, | |
1730 { "name": "responseStatusCode", "type": "integer", "descript ion": "HTTP response code."}, | |
1731 { "name": "redirectUrl", "type": "string" } | |
1732 ], | |
1733 "experimental": true | |
1658 } | 1734 } |
1659 ] | 1735 ] |
1660 }, | 1736 }, |
1661 { | 1737 { |
1662 "domain": "Database", | 1738 "domain": "Database", |
1663 "experimental": true, | 1739 "experimental": true, |
1664 "types": [ | 1740 "types": [ |
1665 { | 1741 { |
1666 "id": "DatabaseId", | 1742 "id": "DatabaseId", |
1667 "type": "string", | 1743 "type": "string", |
(...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4672 "parameters": [ | 4748 "parameters": [ |
4673 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } | 4749 { "name": "windowId", "$ref": "WindowID", "description": "Br owser window id." } |
4674 ], | 4750 ], |
4675 "returns": [ | 4751 "returns": [ |
4676 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } | 4752 { "name": "bounds", "$ref": "Bounds", "description": "Bounds information of the window. When window state is 'minimized', the restored windo w position and size are returned." } |
4677 ] | 4753 ] |
4678 } | 4754 } |
4679 ] | 4755 ] |
4680 }] | 4756 }] |
4681 } | 4757 } |
OLD | NEW |