summaryrefslogtreecommitdiff
path: root/modules/http2/h2_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/http2/h2_stream.h')
-rw-r--r--modules/http2/h2_stream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/http2/h2_stream.h b/modules/http2/h2_stream.h
index 79801722f4..8de3ecbacf 100644
--- a/modules/http2/h2_stream.h
+++ b/modules/http2/h2_stream.h
@@ -41,6 +41,7 @@ typedef enum {
} h2_stream_state_t;
struct h2_mplx;
+struct h2_priority;
struct h2_request;
struct h2_response;
struct h2_session;
@@ -69,6 +70,8 @@ struct h2_stream {
apr_bucket_brigade *bbout; /* output DATA */
apr_off_t data_frames_sent; /* # of DATA frames sent out for this stream */
+
+ struct h2_priority *prio; /* priority information to set before submit */
};
@@ -300,4 +303,16 @@ apr_status_t h2_stream_submit_pushes(h2_stream *stream);
*/
apr_table_t *h2_stream_get_trailers(h2_stream *stream);
+/**
+ * Get priority information set for this stream.
+ */
+struct h2_priority *h2_stream_get_priority(h2_stream *stream);
+
+/**
+ * Set the priority information to use on the submit of the stream.
+ * @param stream the stream to set priority on
+ * @param prio the priority information
+ */
+void h2_stream_set_priority(h2_stream *stream, struct h2_priority *prio);
+
#endif /* defined(__mod_h2__h2_stream__) */