Interface MimeTypeResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Resolves a file path to an HTTP Content-Type value.

Implementations used with StaticFiles must be thread-safe; StaticFiles invokes resolvers concurrently from request-handling threads.

StaticFiles' default resolver uses a curated deterministic extension map for common web assets. It does not call Files.probeContentType(Path). A custom resolver fully replaces that default, and Optional.empty() means no Content-Type header is emitted.

Author:
Mark Allen