@Override
    public JsonNode sanitize(RequestContext requestContext, HttpHeaders headers) {
        final ObjectNode result = objectMapper.createObjectNode();
        maskHeaders(headers, sensitiveHeaders, maskingFunction,
                    (header, values) -> result.put(header.toString(), values.size() > 1 ?
                                                                      values.toString() : values.get(0)));

        return result;
    }
A sanitizer that sanitizes {@link HttpHeaders} and returns {@link JsonNode}.
core/src/main/java/com/linecorp/armeria/common/logging/JsonHeadersSanitizer.java