Use POOL to temporarily construct a dav_response object (from WRES STATUS, and PROPSTATS) and stream it via WRES's ctx->brigade. */
| 1231 | /* Use POOL to temporarily construct a dav_response object (from WRES |
| 1232 | STATUS, and PROPSTATS) and stream it via WRES's ctx->brigade. */ |
| 1233 | static void dav_stream_response(dav_walk_resource *wres, |
| 1234 | int status, |
| 1235 | dav_get_props_result *propstats, |
| 1236 | apr_pool_t *pool) |
| 1237 | { |
| 1238 | dav_response resp = { 0 }; |
| 1239 | dav_walker_ctx *ctx = wres->walk_ctx; |
| 1240 | |
| 1241 | resp.href = wres->resource->uri; |
| 1242 | resp.status = status; |
| 1243 | if (propstats) { |
| 1244 | resp.propresult = *propstats; |
| 1245 | } |
| 1246 | |
| 1247 | dav_send_one_response(&resp, ctx->bb, ctx->r, pool); |
| 1248 | } |
| 1249 | |
| 1250 | |
| 1251 | /* ### move this to dav_util? */ |
no test coverage detected