static HttpResponse of(Supplier<? extends HttpResponse> responseSupplier, Executor executor) {
        requireNonNull(responseSupplier, "responseSupplier");
        requireNonNull(executor, "executor");
        final DeferredHttpResponse res = new DeferredHttpResponse();
        executor.execute(() -> {
            try {
                res.delegate(responseSupplier.get());
            } catch (Throwable ex) {
                res.abort(ex);
            }
        });
        return res;
    }
Creates a new HTTP response that delegates to the {@link HttpResponse} provided by the {@link Supplier}.

@param responseSupplier the {@link Supplier} invokes returning the provided {@link HttpResponse}
@param executor the {@link Executor} that executes the {@link Supplier}.
core/src/main/java/com/linecorp/armeria/common/HttpResponse.java