private void handleRequestComplete(RequestLogBuilder logBuilder, @Nullable Throwable cause) {
            try {
                if (cause == null) {
                    logBuilder.endRequest();
                } else {
                    logBuilder.endRequest(cause);
                    // NB: logBuilder.endResponse(cause) will be called by HttpResponseSubscriber below.
                }
            } catch (Throwable t) {
                logger.warn("Unexpected exception:", t);
            }
            handleRequestOrResponseComplete();
        }
Sets the 'content-length' header to the response.
core/src/main/java/com/linecorp/armeria/server/HttpServerHandler.java