diff options
Diffstat (limited to 'modules/http2/h2_stream.c')
-rw-r--r-- | modules/http2/h2_stream.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/http2/h2_stream.c b/modules/http2/h2_stream.c index a091e4258b..c9f88a27b6 100644 --- a/modules/http2/h2_stream.c +++ b/modules/http2/h2_stream.c @@ -668,3 +668,15 @@ apr_table_t *h2_stream_get_trailers(h2_stream *stream) { return stream->response? stream->response->trailers : NULL; } + +void h2_stream_set_priority(h2_stream *stream, h2_priority *prio) +{ + stream->prio = apr_pcalloc(stream->pool, sizeof(*prio)); + memcpy(stream->prio, prio, sizeof(*prio)); +} + +h2_priority *h2_stream_get_priority(h2_stream *stream) +{ + return stream->prio; +} + |