| 1260 | ap_bucket_response *response) |
| 1261 | #else |
| 1262 | const 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 | |
| 1277 | int h2_stream_is_ready(h2_stream *stream) |
| 1278 | { |
no test coverage detected