40 static int HTTP2RegisterPatternsForProtocolDetection(
void)
47 16, 0, STREAM_TOSERVER) < 0)
59 const char *proto_name =
"http2";
63 if (HTTP2RegisterPatternsForProtocolDetection() < 0)
67 rs_http2_register_parser();
78 if (h2s == NULL || h1tx == NULL) {
95 for (
size_t i = 0; i < nbheaders; i++) {
97 rs_http2_tx_add_header(h2s, bstr_ptr(h->name), (uint32_t)bstr_len(h->name),
98 bstr_ptr(h->value), (uint32_t)bstr_len(h->value));