private CompletableFuture<AggregatedHttpFile> load(
                String path, Executor executor,
                CompletableFuture<ServiceSpecification> serviceSpecificationFuture) {
            if (VERSIONS_PATH.equals(path)) {
                return loadVersions(executor);
            } else if (SPECIFICATION_PATH.equals(path)) {
                return loadSpecifications(serviceSpecificationFuture);
            } else if (SCHEMAS_PATH.equals(path)) {
                return loadSchemas(serviceSpecificationFuture);
            } else {
                throw new Error(); // Should never reach here.
            }
        }
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