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

Function add_cl

modules/proxy/mod_proxy_http.c:261–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261static void add_cl(apr_pool_t *p,
262 apr_bucket_alloc_t *bucket_alloc,
263 apr_bucket_brigade *header_brigade,
264 const char *cl_val)
265{
266 apr_bucket *e;
267 char *buf;
268
269 buf = apr_pstrcat(p, "Content-Length: ",
270 cl_val,
271 CRLF,
272 NULL);
273 ap_xlate_proto_to_ascii(buf, strlen(buf));
274 e = apr_bucket_pool_create(buf, strlen(buf), p, bucket_alloc);
275 APR_BRIGADE_INSERT_TAIL(header_brigade, e);
276}
277
278#ifndef CRLF_ASCII
279#define CRLF_ASCII "\015\012"

Callers 1

ap_proxy_http_prefetchFunction · 0.85

Calls 1

ap_xlate_proto_to_asciiFunction · 0.85

Tested by

no test coverage detected