Commit c6b65690 authored by jan.koester's avatar jan.koester
Browse files

test

parent bcb826cf
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -1574,23 +1574,7 @@ static std::string normalize_path(const std::string &location, const std::string
    out.insert(out.end(), payload.begin(), payload.end());
  }

// --------------- HTTP/2 client frame helpers ---------------
static constexpr uint8_t H2C_FRAME_DATA         = 0x00;
static constexpr uint8_t H2C_FRAME_HEADERS      = 0x01;
static constexpr uint8_t H2C_FRAME_SETTINGS     = 0x04;
static constexpr uint8_t H2C_FRAME_PING         = 0x06;
static constexpr uint8_t H2C_FRAME_GOAWAY       = 0x07;
static constexpr uint8_t H2C_FRAME_WINDOW_UPDATE = 0x08;

static constexpr uint8_t H2C_FLAG_END_STREAM  = 0x01;
static constexpr uint8_t H2C_FLAG_ACK         = 0x01;
static constexpr uint8_t H2C_FLAG_END_HEADERS = 0x04;

static constexpr size_t  H2C_FRAME_HEADER_LEN = 9;
static constexpr size_t  H2C_MAX_FRAME_SIZE   = 16384;

static const char H2C_CLIENT_PREFACE[] = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n";
static constexpr size_t H2C_CLIENT_PREFACE_LEN = 24;
// --------------- HTTP/2 client frame helpers (definitions) ---------------

static std::string h2cBuildFrame(uint8_t type, uint8_t flags, uint32_t stream_id,
                                 const std::string &payload) {