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

Function add_status_cell

modules/md/mod_md_status.c:685–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685static void add_status_cell(status_ctx *ctx, md_json_t *mdj, const status_info *info)
686{
687 if (info->fn) {
688 info->fn(ctx, mdj, info);
689 }
690 else {
691 const char *prefix = ctx->prefix;
692 if (!HTML_STATUS(ctx)) {
693 ctx->prefix = apr_pstrcat(ctx->p, prefix, info->label, NULL);
694 }
695 add_json_val(ctx, md_json_getj(mdj, info->key, NULL));
696 if (!HTML_STATUS(ctx)) {
697 ctx->prefix = prefix;
698 }
699 }
700}
701
702static const status_info status_infos[] = {
703 { "Domain", MD_KEY_NAME, NULL },

Callers 2

add_md_rowFunction · 0.85
add_ocsp_rowFunction · 0.85

Calls 2

add_json_valFunction · 0.85
md_json_getjFunction · 0.85

Tested by

no test coverage detected