internal/testdata/har/example-har.json

{
  "log": {
    "version": "1.2",
    "creator": {"name": "httptap", "version": "test"},
    "entries": [
      {
        "startedDateTime": "2024-11-08T10:30:00Z",
        "time": 12,
        "request": {
          "method": "GET",
          "url": "https://shop.example.com/api/v1/orders?limit=5",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {"name": "Host", "value": "shop.example.com"},
            {"name": "Accept", "value": "application/json"},
            {"name": "User-Agent", "value": "httptap/fixture"}
          ],
          "queryString": [
            {"name": "limit", "value": "5"}
          ],
          "headersSize": -1,
          "bodySize": 0
        },
        "response": {
          "status": 200,
          "statusText": "OK",
          "httpVersion": "HTTP/1.1",
          "headers": [
            {"name": "Content-Type", "value": "application/json"},
            {"name": "Content-Length", "value": "29"}
          ],
          "content": {
            "size": 29,
            "mimeType": "application/json",
            "text": "{\"orders\":[{\"id\":1,\"total\":9}]}"
          },
          "redirectURL": "",
          "headersSize": -1,
          "bodySize": 29
        },
        "cache": {},
        "timings": {
          "blocked": -1, "dns": -1, "connect": -1,
          "ssl": -1, "send": 0, "wait": 12, "receive": 0
        }
      }
    ]
  }
}