| 1564 | #endif /* else AP_HAS_RESPONSE_BUCKETS */ |
| 1565 | |
| 1566 | apr_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 |
no test coverage detected