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

Function has_relation

modules/http2/h2_push.c:300–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static int has_relation(link_ctx *ctx, const char *rel)
301{
302 const char *s, *val = apr_table_get(ctx->params, "rel");
303 if (val) {
304 if (!strcmp(rel, val)) {
305 return 1;
306 }
307 s = ap_strstr_c(val, rel);
308 if (s && (s == val || s[-1] == ' ')) {
309 s += strlen(rel);
310 if (!*s || *s == ' ') {
311 return 1;
312 }
313 }
314 }
315 return 0;
316}
317
318static int add_push(link_ctx *ctx)
319{

Callers 1

add_pushFunction · 0.85

Calls 1

ap_strstr_cFunction · 0.85

Tested by

no test coverage detected