{
  "format": 1,
  "capture": "h2-early-response",
  "check": "h2-frames",
  "port": 80,
  "frames": [
    {
      "dir": "c2s",
      "type": "HEADERS",
      "stream": 1,
      "end_stream": false,
      "headers": [
        [
          ":method",
          "POST"
        ],
        [
          ":scheme",
          "https"
        ],
        [
          ":authority",
          "upload.example"
        ],
        [
          ":path",
          "/upload"
        ],
        [
          "content-type",
          "application/octet-stream"
        ]
      ]
    },
    {
      "dir": "c2s",
      "type": "DATA",
      "stream": 1,
      "end_stream": false,
      "data_text": "first-chunk-of-the-upload"
    },
    {
      "dir": "s2c",
      "type": "HEADERS",
      "stream": 1,
      "end_stream": false,
      "headers": [
        [
          ":status",
          "413"
        ],
        [
          "content-type",
          "text/plain"
        ]
      ]
    },
    {
      "dir": "s2c",
      "type": "DATA",
      "stream": 1,
      "end_stream": true,
      "data_text": "payload too large"
    },
    {
      "dir": "s2c",
      "type": "RST_STREAM",
      "stream": 1,
      "rst_code": 0
    },
    {
      "dir": "c2s",
      "type": "DATA",
      "stream": 1,
      "end_stream": false,
      "data_text": "second-chunk-sent-after-the-response"
    },
    {
      "dir": "c2s",
      "type": "DATA",
      "stream": 1,
      "end_stream": true,
      "data_text": "tail"
    }
  ]
}
