Packages

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

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Config
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

  1. val basePath: String
  2. val blockingExecutionContext: ExecutionContext
  3. val bufferSize: Int
  4. val cacheStrategy: CacheStrategy[F]
  5. val pathPrefix: String
  6. val preferGzipped: Boolean