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

Function h2_cconfig_get_priority

modules/http2/h2_config.c:579–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579const struct h2_priority *h2_cconfig_get_priority(conn_rec *c, const char *content_type)
580{
581 const h2_config *conf = h2_config_get(c);
582 if (content_type && conf->priorities) {
583 apr_ssize_t len = (apr_ssize_t)strcspn(content_type, "; \t");
584 h2_priority *prio = apr_hash_get(conf->priorities, content_type, len);
585 return prio? prio : apr_hash_get(conf->priorities, "*", 1);
586 }
587 return NULL;
588}
589
590static const char *h2_conf_set_max_streams(cmd_parms *cmd,
591 void *dirconf, const char *value)

Callers 1

h2_stream_get_priorityFunction · 0.85

Calls 1

h2_config_getFunction · 0.85

Tested by

no test coverage detected