private CompletableFuture<ServiceSpecification> generateServiceSpecification(Executor executor,
                                                                                     Route docServiceRoute) {
            return CompletableFuture.supplyAsync(() -> {
                final DocStringSupport docStringSupport = new DocStringSupport(services);
                ServiceSpecification spec = generate(services, docServiceRoute);
                spec = docStringSupport.addDocStrings(spec);
                spec = exampleSupport.addExamples(spec);
                return spec;
            }, executor);
        }
Creates a new instance with example HTTP headers and example requests and injected scripts.
core/src/main/java/com/linecorp/armeria/server/docs/DocService.java