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

Function h2_stream_get_priority

modules/http2/h2_stream.c:1262–1275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260 ap_bucket_response *response)
1261#else
1262const h2_priority *h2_stream_get_priority(h2_stream *stream,
1263 h2_headers *response)
1264#endif
1265{
1266 H2_STRM_ASSERT_MAGIC(stream, H2_STRM_MAGIC_OK);
1267 if (response && stream->initiated_on) {
1268 const char *ctype = apr_table_get(response->headers, "content-type");
1269 if (ctype) {
1270 /* FIXME: Not good enough, config needs to come from request->server */
1271 return h2_cconfig_get_priority(stream->session->c1, ctype);
1272 }
1273 }
1274 return NULL;
1275}
1276
1277int h2_stream_is_ready(h2_stream *stream)
1278{

Callers 1

h2_stream.cFile · 0.85

Calls 1

h2_cconfig_get_priorityFunction · 0.85

Tested by

no test coverage detected