MCPcopy Create free account
hub / github.com/apache/httpd / get_first_response_bucket

Function get_first_response_bucket

modules/http2/h2_stream.c:1000–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static apr_bucket *get_first_response_bucket(apr_bucket_brigade *bb)
1001{
1002 if (bb) {
1003 apr_bucket *b = APR_BRIGADE_FIRST(bb);
1004 while (b != APR_BRIGADE_SENTINEL(bb)) {
1005#if AP_HAS_RESPONSE_BUCKETS
1006 if (AP_BUCKET_IS_RESPONSE(b)) {
1007 return b;
1008 }
1009#else
1010 if (H2_BUCKET_IS_HEADERS(b)) {
1011 return b;
1012 }
1013#endif
1014 b = APR_BUCKET_NEXT(b);
1015 }
1016 }
1017 return NULL;
1018}
1019
1020static void stream_do_error_bucket(h2_stream *stream, apr_bucket *b)
1021{

Callers 1

h2_stream_is_readyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected