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
- Source
- ResourceService.scala
- Alphabetic
- By Inheritance
- Config
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Config(basePath: String, blockingExecutionContext: ExecutionContext, pathPrefix: String = "", bufferSize: Int = 50 * 1024, cacheStrategy: CacheStrategy[F] = NoopCacheStrategy[F], preferGzipped: Boolean = false)
- 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
Value Members
- val basePath: String
- val blockingExecutionContext: ExecutionContext
- val bufferSize: Int
- val cacheStrategy: CacheStrategy[F]
- val pathPrefix: String
- val preferGzipped: Boolean