summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_request.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/http2/h2_request.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/http2/h2_request.h b/modules/http2/h2_request.h
index 19005a88e6..69d24f38a2 100644
--- a/modules/http2/h2_request.h
+++ b/modules/http2/h2_request.h
@@ -38,6 +38,7 @@ struct h2_request {
apr_table_t *headers;
apr_table_t *trailers;
+ apr_time_t request_time;
apr_off_t content_length;
int chunked;
int eoh;
@@ -66,6 +67,15 @@ apr_status_t h2_request_end_headers(h2_request *req, apr_pool_t *pool, int eos);
void h2_request_copy(apr_pool_t *p, h2_request *dst, const h2_request *src);
+/**
+ * Create a request_rec representing the h2_request to be
+ * processed on the given connection.
+ *
+ * @param req the h2 request to process
+ * @param conn the connection to process the request on
+ * @return the request_rec representing the request
+ */
+request_rec *h2_request_create_rec(const h2_request *req, conn_rec *conn);
#endif /* defined(__mod_h2__h2_request__) */