chromium/third_party/blink/web_tests/http/tests/devtools/har-importer-expected.txt

Verifies that imported HAR files create matching NetworkRequests
requests: [
  {
    "url": "http://localhost:8000/",
    "documentURL": "http://localhost:8000/",
    "initiator": {
      "type": "other"
    },
    "requestFormData": null,
    "connectionId": "2945",
    "requestMethod": "GET",
    "requestHeaders": [
      {
        "custom": {},
        "name": "Host",
        "value": "localhost:8000"
      }
    ],
    "mimeType": "text/html",
    "responseHeaders": [
      {
        "custom": {},
        "name": "Content-Type",
        "value": "text/html;charset=ISO-8859-1"
      }
    ],
    "statusCode": 200,
    "statusText": "OK",
    "protocol": "http/1.1",
    "resourceSize": 4633,
    "transferSize": 4821,
    "cached": false,
    "cachedInMemory": false,
    "contentData": {
      "error": null,
      "content": "fake page data",
      "encoded": false
    },
    "remoteAddress": "[::1]:80",
    "resourceType": {},
    "priority": "VeryHigh",
    "finished": true,
    "timing": {
      "proxyStart": 2.0154479999188335,
      "proxyEnd": 2.4644479999188333,
      "requestTime": 1542746587.755448,
      "dnsStart": -1,
      "dnsEnd": -1,
      "connectStart": -1,
      "connectEnd": -1,
      "sslStart": -1,
      "sslEnd": -1,
      "workerStart": -1,
      "workerReady": -1,
      "workerFetchStart": -1,
      "workerRespondWithSettled": -1,
      "sendStart": 2.4644479999188333,
      "sendEnd": 2.534447999918833,
      "pushStart": 0,
      "pushEnd": 0,
      "receiveHeadersStart": 2.534447999918833,
      "receiveHeadersEnd": 5.624447982991114
    },
    "endTime": 1542746587.7661417,
    "frames": []
  },
  {
    "url": "http://localhost:8000/post-endpoint",
    "documentURL": "http://localhost:8000/",
    "initiator": {
      "type": "parser",
      "url": "http://localhost/",
      "lineNumber": 1
    },
    "requestFormData": "one=urlencodedvalueone&two=urlencodedvaluetwo",
    "connectionId": "2945",
    "requestMethod": "POST",
    "requestHeaders": [],
    "mimeType": "image/x-icon",
    "responseHeaders": [],
    "statusCode": 200,
    "statusText": "OK",
    "protocol": "http/1.1",
    "resourceSize": 1150,
    "transferSize": 1417,
    "cached": false,
    "cachedInMemory": false,
    "contentData": {
      "error": null,
      "content": null,
      "encoded": false
    },
    "remoteAddress": "[::1]:80",
    "resourceType": {},
    "priority": "Low",
    "finished": true,
    "timing": {
      "proxyStart": 1.7575360001232476,
      "proxyEnd": 2.2485360001232477,
      "requestTime": 1542746587.8705359,
      "dnsStart": -1,
      "dnsEnd": -1,
      "connectStart": -1,
      "connectEnd": -1,
      "sslStart": -1,
      "sslEnd": -1,
      "workerStart": -1,
      "workerReady": -1,
      "workerFetchStart": -1,
      "workerRespondWithSettled": -1,
      "sendStart": 2.2485360001232477,
      "sendEnd": 2.3095360001232477,
      "pushStart": 0,
      "pushEnd": 0,
      "receiveHeadersStart": 2.3095360001232477,
      "receiveHeadersEnd": 2.828536113491282
    },
    "endTime": 1542746587.8738945,
    "frames": []
  },
  {
    "url": "http://localhost:8000/js_file.js",
    "documentURL": "http://localhost:8000/",
    "initiator": null,
    "requestFormData": null,
    "connectionId": "2945",
    "requestMethod": "GET",
    "requestHeaders": [],
    "mimeType": "undefined",
    "responseHeaders": [],
    "statusCode": 200,
    "statusText": "OK",
    "protocol": "http/1.1",
    "resourceSize": 1150,
    "transferSize": 1417,
    "cached": false,
    "cachedInMemory": false,
    "contentData": {
      "error": null,
      "content": null,
      "encoded": false
    },
    "remoteAddress": "[::1]:80",
    "resourceType": {},
    "priority": "Low",
    "finished": true,
    "timing": {
      "proxyStart": 1.7575360001232476,
      "proxyEnd": 2.2485360001232477,
      "requestTime": 1542746587.8705359,
      "dnsStart": -1,
      "dnsEnd": -1,
      "connectStart": -1,
      "connectEnd": -1,
      "sslStart": -1,
      "sslEnd": -1,
      "workerStart": -1,
      "workerReady": -1,
      "workerFetchStart": -1,
      "workerRespondWithSettled": -1,
      "sendStart": 2.2485360001232477,
      "sendEnd": 2.3095360001232477,
      "pushStart": 0,
      "pushEnd": 0,
      "receiveHeadersStart": 2.3095360001232477,
      "receiveHeadersEnd": 2.828536113491282
    },
    "endTime": 1542746587.8738945,
    "frames": []
  },
  {
    "url": "http://localhost:8000/endpoint",
    "documentURL": "http://localhost:8000/",
    "initiator": {
      "type": "script",
      "stack": {
        "custom": {},
        "callFrames": []
      }
    },
    "requestFormData": null,
    "connectionId": "2945",
    "requestMethod": "GET",
    "requestHeaders": [],
    "mimeType": "undefined",
    "responseHeaders": [],
    "statusCode": 200,
    "statusText": "OK",
    "protocol": "http/1.1",
    "resourceSize": 1150,
    "transferSize": 1417,
    "cached": false,
    "cachedInMemory": false,
    "contentData": {
      "error": null,
      "content": null,
      "encoded": false
    },
    "remoteAddress": "[::1]:80",
    "resourceType": {},
    "priority": "Low",
    "finished": true,
    "timing": {
      "proxyStart": 1.7575360001232476,
      "proxyEnd": 2.2485360001232477,
      "requestTime": 1542746587.8705359,
      "dnsStart": -1,
      "dnsEnd": -1,
      "connectStart": -1,
      "connectEnd": -1,
      "sslStart": -1,
      "sslEnd": -1,
      "workerStart": -1,
      "workerReady": -1,
      "workerFetchStart": -1,
      "workerRespondWithSettled": -1,
      "sendStart": 2.2485360001232477,
      "sendEnd": 2.3095360001232477,
      "pushStart": 0,
      "pushEnd": 0,
      "receiveHeadersStart": 2.3095360001232477,
      "receiveHeadersEnd": 2.828536113491282
    },
    "endTime": 1542746587.8738945,
    "frames": []
  },
  {
    "url": "ws://localhost:8880/echo",
    "documentURL": "ws://localhost:8880/echo",
    "initiator": {
      "type": "script",
      "stack": {
        "custom": {},
        "callFrames": [
          {
            "custom": {},
            "functionName": "",
            "scriptId": "73",
            "url": "",
            "lineNumber": 0,
            "columnNumber": 5
          }
        ]
      }
    },
    "requestFormData": null,
    "connectionId": "",
    "requestMethod": "GET",
    "requestHeaders": [
      {
        "custom": {},
        "name": "Pragma",
        "value": "no-cache"
      },
      {
        "custom": {},
        "name": "Origin",
        "value": "http://localhost:8000"
      },
      {
        "custom": {},
        "name": "Accept-Encoding",
        "value": "gzip, deflate, br"
      },
      {
        "custom": {},
        "name": "Host",
        "value": "localhost:8880"
      },
      {
        "custom": {},
        "name": "Accept-Language",
        "value": "en-US,en;q=0.9"
      },
      {
        "custom": {},
        "name": "Sec-WebSocket-Key",
        "value": "EBTeYTo1PMrIJhQV3KCyLA=="
      },
      {
        "custom": {},
        "name": "User-Agent",
        "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3762.0 Safari/537.36"
      },
      {
        "custom": {},
        "name": "Upgrade",
        "value": "websocket"
      },
      {
        "custom": {},
        "name": "Sec-WebSocket-Extensions",
        "value": "permessage-deflate; client_max_window_bits"
      },
      {
        "custom": {},
        "name": "Cache-Control",
        "value": "no-cache"
      },
      {
        "custom": {},
        "name": "Connection",
        "value": "Upgrade"
      },
      {
        "custom": {},
        "name": "Sec-WebSocket-Version",
        "value": "13"
      }
    ],
    "responseHeaders": [
      {
        "custom": {},
        "name": "Sec-WebSocket-Accept",
        "value": "U81HpQbqlT7cIvlTLbf4dTv7m5w="
      },
      {
        "custom": {},
        "name": "Connection",
        "value": "Upgrade"
      },
      {
        "custom": {},
        "name": "Sec-WebSocket-Extensions",
        "value": "permessage-deflate"
      },
      {
        "custom": {},
        "name": "Upgrade",
        "value": "websocket"
      }
    ],
    "statusCode": 101,
    "statusText": "Switching Protocols",
    "protocol": "http/1.1",
    "resourceSize": 175,
    "transferSize": 0,
    "cached": false,
    "cachedInMemory": false,
    "contentData": {
      "error": null,
      "content": null,
      "encoded": false
    },
    "remoteAddress": ":80",
    "resourceType": {},
    "priority": null,
    "finished": true,
    "timing": {
      "proxyStart": -1,
      "proxyEnd": -1,
      "requestTime": 1555608228.174,
      "dnsStart": -1,
      "dnsEnd": -1,
      "connectStart": -1,
      "connectEnd": -1,
      "sslStart": -1,
      "sslEnd": -1,
      "workerStart": -1,
      "workerReady": -1,
      "workerFetchStart": -1,
      "workerRespondWithSettled": -1,
      "sendStart": 0,
      "sendEnd": 0,
      "pushStart": 0,
      "pushEnd": 0,
      "receiveHeadersStart": 0,
      "receiveHeadersEnd": 33045.93599960208
    },
    "endTime": 1555608261.2199361,
    "frames": [
      {
        "time": 1555608234.452854,
        "text": "message one",
        "opCode": 1,
        "mask": true,
        "type": "send"
      },
      {
        "time": 1555608234.454548,
        "text": "message one",
        "opCode": 1,
        "mask": false,
        "type": "receive"
      },
      {
        "time": 1555608237.98099,
        "text": "message two",
        "opCode": 1,
        "mask": true,
        "type": "send"
      },
      {
        "time": 1555608237.9821968,
        "text": "message two",
        "opCode": 1,
        "mask": false,
        "type": "receive"
      },
      {
        "time": 1555608261.219595,
        "text": "YmluYXJ5IG1lc3NhZ2U=",
        "opCode": 2,
        "mask": true,
        "type": "send"
      },
      {
        "time": 1555608261.2207098,
        "text": "YmluYXJ5IG1lc3NhZ2U=",
        "opCode": 2,
        "mask": false,
        "type": "receive"
      }
    ]
  }
]