@Override
    public ContentChannel handleRequest(Request request, ResponseHandler handler) {
        try (FastContentWriter writer = new FastContentWriter(new ResponseDispatch() {
            @Override protected Response newResponse() {
                Response response = new Response(Response.Status.OK);
                response.headers().add("Content-Type", List.of("application/json"));
                return response;
            }
        }.connect(handler))) {
            writer.write(jsonMapper.writerWithDefaultPrettyPrinter().writeValueAsBytes(render()));
        } catch (JsonProcessingException e) {
            throw new RuntimeException("Invalid JSON: " + e.getMessage(), e);
        }

        return new IgnoredContent();
    }
Handler that outputs meta-info about the deployed Vespa application, and status of components and chains.

@author gjoranv
@author Einar M R Rosenvinge
@author bjorncs
container-disc/src/main/java/com/yahoo/container/handler/observability/ApplicationStatusHandler.java