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

Function md_http_POST_create

modules/md/md_http.c:315–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315apr_status_t md_http_POST_create(md_http_request_t **preq, md_http_t *http, const char *url,
316 struct apr_table_t *headers, const char *content_type,
317 struct apr_bucket_brigade *body, int detect_len)
318{
319 md_http_request_t *req;
320 apr_status_t rv;
321
322 rv = req_create(&req, http, "POST", url, headers);
323 if (APR_SUCCESS == rv) {
324 rv = req_set_body(req, content_type, body, -1, detect_len);
325 }
326 *preq = (APR_SUCCESS == rv)? req : NULL;
327 return rv;
328}
329
330apr_status_t md_http_POSTd_create(md_http_request_t **preq, md_http_t *http, const char *url,
331 struct apr_table_t *headers, const char *content_type,

Callers 1

md_http_POST_performFunction · 0.85

Calls 2

req_createFunction · 0.85
req_set_bodyFunction · 0.85

Tested by

no test coverage detected