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

Function md_json_http_get

modules/md/md_json.c:1219–1236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219apr_status_t md_json_http_get(md_json_t **pjson, apr_pool_t *pool,
1220 struct md_http_t *http, const char *url)
1221{
1222 apr_status_t rv;
1223 resp_data resp;
1224
1225 memset(&resp, 0, sizeof(resp));
1226 resp.pool = pool;
1227
1228 rv = md_http_GET_perform(http, url, NULL, json_resp_cb, &resp);
1229
1230 if (rv == APR_SUCCESS) {
1231 *pjson = resp.json;
1232 return resp.rv;
1233 }
1234 *pjson = NULL;
1235 return rv;
1236}
1237
1238
1239apr_status_t md_json_copy_to(md_json_t *dest, const md_json_t *src, ...)

Callers

nothing calls this directly

Calls 1

md_http_GET_performFunction · 0.85

Tested by

no test coverage detected