Interface HttpFile

All Known Implementing Classes:
AbstractHttpFile, StreamingHttpFile

public interface HttpFile
A file-like HTTP resource which yields an HttpResponse.

 HttpFile faviconFile = HttpFile.of(new File("/var/www/favicon.ico"));
 ServerBuilder builder = Server.builder();
 builder.service("/favicon.ico", faviconFile.asService());
 Server server = builder.build();
 
See Also:
HttpFileBuilder