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 ResourceService

  5. def fileService(config: Config): Service[Request, Response]

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

  6. def resourceService(config: Config): Service[Request, Response]

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

Inherited from AnyRef

Inherited from Any

Ungrouped