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

Function si_val_names

modules/md/mod_md_status.c:667–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667static void si_val_names(status_ctx *ctx, md_json_t *mdj, const status_info *info)
668{
669 const char *prefix = ctx->prefix;
670 if (HTML_STATUS(ctx)) {
671 apr_brigade_puts(ctx->bb, NULL, NULL, "<div style=\"max-width:400px;\">");
672 }
673 else {
674 ctx->prefix = apr_pstrcat(ctx->p, prefix, info->label, NULL);
675 }
676 add_json_val(ctx, md_json_getj(mdj, info->key, NULL));
677 if (HTML_STATUS(ctx)) {
678 apr_brigade_puts(ctx->bb, NULL, NULL, "</div>");
679 }
680 else {
681 ctx->prefix = prefix;
682 }
683}
684
685static void add_status_cell(status_ctx *ctx, md_json_t *mdj, const status_info *info)
686{

Callers

nothing calls this directly

Calls 2

add_json_valFunction · 0.85
md_json_getjFunction · 0.85

Tested by

no test coverage detected