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

Function val_H2_PUSH

modules/http2/mod_http2.c:216–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216static const char *val_H2_PUSH(apr_pool_t *p, server_rec *s,
217 conn_rec *c, request_rec *r,
218 h2_conn_ctx_t *conn_ctx)
219{
220 if (conn_ctx) {
221 if (r) {
222 if (conn_ctx->stream_id) {
223 const h2_stream *stream = h2_mplx_c2_stream_get(conn_ctx->mplx, conn_ctx->stream_id);
224 if (stream && stream->push_policy != H2_PUSH_NONE) {
225 return "on";
226 }
227 }
228 }
229 else if (c && h2_session_push_enabled(conn_ctx->session)) {
230 return "on";
231 }
232 }
233 else if (s) {
234 if (h2_config_geti(r, s, H2_CONF_PUSH)) {
235 return "on";
236 }
237 }
238 return "off";
239}
240
241static const char *val_H2_PUSHED(apr_pool_t *p, server_rec *s,
242 conn_rec *c, request_rec *r,

Callers

nothing calls this directly

Calls 3

h2_mplx_c2_stream_getFunction · 0.85
h2_session_push_enabledFunction · 0.85
h2_config_getiFunction · 0.85

Tested by

no test coverage detected