@Override
    protected void onResponseBegin(Request request, int status, HttpFields headers) {
        handleListenerInvocation("EventsHandler", "onResponseBegin", "%h", List.of(request), () -> {
            SocketChannelEndPoint endpoint = findUnderlyingSocketEndpoint(request.getConnectionMetaData().getConnection().getEndPoint());
            ConnectionInfo info = connectionInfos.get(endpoint).orElse(null);
            if (info == null) return; // Connection closed before response started - observed during Jetty server shutdown
            info.incrementResponses();
        });
    }
Jetty integration for jdisc connection log ({@link ConnectionLog}).

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/JettyConnectionLogger.java