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

Function contains_name

modules/http2/h2_util.c:1645–1658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1643};
1644
1645static int contains_name(const literal *lits, size_t llen, nghttp2_nv *nv)
1646{
1647 const literal *lit;
1648 size_t i;
1649
1650 for (i = 0; i < llen; ++i) {
1651 lit = &lits[i];
1652 if (lit->len == nv->namelen
1653 && !ap_cstr_casecmpn(lit->name, (const char *)nv->name, nv->namelen)) {
1654 return 1;
1655 }
1656 }
1657 return 0;
1658}
1659
1660int h2_util_ignore_resp_header(const char *name)
1661{

Callers 4

h2_req_ignore_headerFunction · 0.85
h2_ignore_req_trailerFunction · 0.85
h2_ignore_resp_trailerFunction · 0.85

Calls 1

ap_cstr_casecmpnFunction · 0.85

Tested by

no test coverage detected