MCPcopy Create free account
hub / github.com/apache/httpd / h2_req_create_ngheader

Function h2_req_create_ngheader

modules/http2/h2_util.c:1566–1589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1564#endif /* else AP_HAS_RESPONSE_BUCKETS */
1565
1566apr_status_t h2_req_create_ngheader(h2_ngheader **ph, apr_pool_t *p,
1567 const struct h2_request *req)
1568{
1569
1570 const char *keys[] = {
1571 ":scheme",
1572 ":authority",
1573 ":path",
1574 ":method",
1575 };
1576 const char *values[] = {
1577 req->scheme,
1578 req->authority,
1579 req->path,
1580 req->method,
1581 };
1582
1583 ap_assert(req->scheme);
1584 ap_assert(req->authority);
1585 ap_assert(req->path);
1586 ap_assert(req->method);
1587
1588 return ngheader_create(ph, p, 0, H2_ALEN(keys), keys, values, req->headers);
1589}
1590
1591/*******************************************************************************
1592 * header HTTP/1 <-> HTTP/2 conversions

Callers 1

h2_session_pushFunction · 0.85

Calls 1

ngheader_createFunction · 0.85

Tested by

no test coverage detected