Interface ContentTypeResolver

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

    public interface ContentTypeResolver
    Implement this interface to provide a custom mapping from a file name to a [[akka.http.javadsl.model.ContentType]].
    • Method Detail

      • resolve

        ContentType resolve​(java.lang.String fileName)
      • asScala

        default ContentTypeResolver asScala()
        Returns a Scala DSL representation of this content type resolver