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

Function dav_stream_response

modules/dav/main/mod_dav.c:1233–1248  ·  view source on GitHub ↗

Use POOL to temporarily construct a dav_response object (from WRES STATUS, and PROPSTATS) and stream it via WRES's ctx->brigade. */

Source from the content-addressed store, hash-verified

1231/* Use POOL to temporarily construct a dav_response object (from WRES
1232 STATUS, and PROPSTATS) and stream it via WRES's ctx->brigade. */
1233static 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? */

Callers 1

dav_propfind_walkerFunction · 0.85

Calls 1

dav_send_one_responseFunction · 0.85

Tested by

no test coverage detected