Packages

o

org.http4s.server.staticcontent

ResourceService

object ResourceService

Source
ResourceService.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Config[F[_]](basePath: String, blockingExecutionContext: ExecutionContext, pathPrefix: String = "", bufferSize: Int = 50 * 1024, cacheStrategy: CacheStrategy[F] = NoopCacheStrategy[F], preferGzipped: Boolean = false) extends Product with Serializable

    org.http4s.server.staticcontent.ResourceService configuration

    basePath

    prefix of the path files will be served from

    blockingExecutionContext

    ExecutionContext to use when collecting content

    pathPrefix

    prefix of the Uri that content will be served from

    bufferSize

    size hint of internal buffers to use when serving resources

    cacheStrategy

    strategy to use for caching purposes. Default to no caching.

    preferGzipped

    whether to serve pre-gzipped files (with extension ".gz") if they exist