diff options
author | Stefan Eissing <icing@apache.org> | 2016-07-29 17:12:38 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2016-07-29 17:12:38 +0200 |
commit | d6cd77eb9530744faa778c6d83c2ddeb58d335f1 (patch) | |
tree | cbf54993453e12c4ab560411f1feee69f56e35d7 /modules/http2/h2_stream.h | |
parent | mod_http2: work on .well-known/h2Interop/state (diff) | |
download | apache2-d6cd77eb9530744faa778c6d83c2ddeb58d335f1.tar.xz apache2-d6cd77eb9530744faa778c6d83c2ddeb58d335f1.zip |
mod_http2: complete implemenmtation of draft-http2-debug-state
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1754534 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http2/h2_stream.h')
-rw-r--r-- | modules/http2/h2_stream.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/http2/h2_stream.h b/modules/http2/h2_stream.h index f80f8115e7..4ffa7c32b1 100644 --- a/modules/http2/h2_stream.h +++ b/modules/http2/h2_stream.h @@ -65,7 +65,10 @@ struct h2_stream { unsigned int submitted : 1; /* response HEADER has been sent */ apr_off_t input_remaining; /* remaining bytes on input as advertised via content-length */ - apr_off_t data_frames_sent; /* # of DATA frames sent out for this stream */ + apr_off_t out_data_frames; /* # of DATA frames sent */ + apr_off_t out_data_octets; /* # of DATA octets (payload) sent */ + apr_off_t in_data_frames; /* # of DATA frames received */ + apr_off_t in_data_octets; /* # of DATA octets (payload) received */ }; @@ -277,4 +280,10 @@ apr_status_t h2_stream_submit_pushes(h2_stream *stream); */ const struct h2_priority *h2_stream_get_priority(h2_stream *stream); +/** + * Return a textual representation of the stream state as in RFC 7540 + * nomenclator, all caps, underscores. + */ +const char *h2_stream_state_str(h2_stream *stream); + #endif /* defined(__mod_h2__h2_stream__) */ |