| 214 | } |
| 215 | |
| 216 | static 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 | |
| 241 | static const char *val_H2_PUSHED(apr_pool_t *p, server_rec *s, |
| 242 | conn_rec *c, request_rec *r, |
nothing calls this directly
no test coverage detected