private static AggregatedHttpFile toFile(byte[] content, MediaType mediaType) {
            return AggregatedHttpFile
                    .builder(HttpData.wrap(content))
                    .contentType(mediaType)
                    .cacheControl(ServerCacheControl.REVALIDATED)
                    .build();
        }
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