org.http4s.server

staticcontent

package staticcontent

Helpers for serving static content from http4s

Note that these tools are relatively primitive and a dedicated server should be used for serious static content serving.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. staticcontent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait CacheStrategy extends AnyRef

    Cache the body of a Response for future use

  2. class MemoryCache extends CacheStrategy

    CacheStrategy that will cache all Response bodies in local memory

Value Members

  1. object FileService

  2. object MemoryCache

  3. object NoopCacheStrategy extends CacheStrategy

    Cache strategy that doesn't cache anything, ever.

  4. object PathNormalizer

  5. object ResourceService

  6. object WebjarService

    Constructs new services to serve assets from Webjars

  7. def fileService(config: Config): HttpService

    Make a new org.http4s.HttpService that serves static files.

  8. def resourceService(config: Config): HttpService

    Make a new org.http4s.HttpService that serves static files, possibly from the classpath.

  9. def webjarService(config: Config): HttpService

    Make a new org.http4s.HttpService that serves static files from webjars

Inherited from AnyRef

Inherited from Any

Ungrouped