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

Function ap_bucket_error_make

server/error_bucket.c:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41AP_DECLARE(apr_bucket *) ap_bucket_error_make(apr_bucket *b, int error,
42 const char *buf, apr_pool_t *p)
43{
44 ap_bucket_error *h;
45
46 h = apr_bucket_alloc(sizeof(*h), b->list);
47 h->status = error;
48 h->data = apr_pstrdup(p, buf);
49
50 b = apr_bucket_shared_make(b, h, 0, 0);
51 b->type = &ap_bucket_type_error;
52 return b;
53}
54
55AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error, const char *buf,
56 apr_pool_t *p,

Callers 1

ap_bucket_error_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected