tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

devtools_network.json (3029B)


      1 [
      2  {
      3    "namespace": "devtools.network",
      4    "allowedContexts": ["devtools", "devtools_only"],
      5    "defaultContexts": ["devtools", "devtools_only"],
      6    "description": "Use the <code>chrome.devtools.network</code> API to retrieve the information about network requests displayed by the Developer Tools in the Network panel.",
      7    "types": [
      8      {
      9        "id": "Request",
     10        "type": "object",
     11        "description": "Represents a network request for a document resource (script, image and so on). See HAR Specification for reference.",
     12        "functions": [
     13          {
     14            "name": "getContent",
     15            "type": "function",
     16            "description": "Returns content of the response body.",
     17            "async": "callback",
     18            "parameters": [
     19              {
     20                "name": "callback",
     21                "type": "function",
     22                "description": "A function that receives the response body when the request completes.",
     23                "parameters": [
     24                  {
     25                    "name": "content",
     26                    "type": "string",
     27                    "description": "Content of the response body (potentially encoded)."
     28                  },
     29                  {
     30                    "name": "encoding",
     31                    "type": "string",
     32                    "description": "Empty if content is not encoded, encoding name otherwise. Currently, only base64 is supported."
     33                  }
     34                ]
     35              }
     36            ]
     37          }
     38        ]
     39      }
     40    ],
     41    "functions": [
     42      {
     43        "name": "getHAR",
     44        "type": "function",
     45        "description": "Returns HAR log that contains all known network requests.",
     46        "async": "callback",
     47        "parameters": [
     48          {
     49            "name": "callback",
     50            "type": "function",
     51            "description": "A function that receives the HAR log when the request completes.",
     52            "parameters": [
     53              {
     54                "name": "harLog",
     55                "type": "object",
     56                "additionalProperties": { "type": "any" },
     57                "description": "A HAR log. See HAR specification for details."
     58              }
     59            ]
     60          }
     61        ]
     62      }
     63    ],
     64    "events": [
     65      {
     66        "name": "onRequestFinished",
     67        "type": "function",
     68        "description": "Fired when a network request is finished and all request data are available.",
     69        "parameters": [
     70          {
     71            "name": "request",
     72            "$ref": "Request",
     73            "description": "Description of a network request in the form of a HAR entry. See HAR specification for details."
     74          }
     75        ]
     76      },
     77      {
     78        "name": "onNavigated",
     79        "type": "function",
     80        "description": "Fired when the inspected window navigates to a new page.",
     81        "parameters": [
     82          {
     83            "name": "url",
     84            "type": "string",
     85            "description": "URL of the new page."
     86          }
     87        ]
     88      }
     89    ]
     90  }
     91 ]