Packages

final case class Config(systemPath: String, pathPrefix: String = "", pathCollector: (File, Config, Request) ⇒ Task[Option[Response]] = filesOnly, bufferSize: Int = 50*1024, executor: ExecutorService = DefaultPool, cacheStrategy: CacheStrategy = NoopCacheStrategy) extends Product with Serializable

systemPath

path prefix to the folder from which content will be served

pathPrefix

prefix of Uri from which content will be served

pathCollector

function that performs the work of collecting the file or rendering the directory into a response.

bufferSize

buffer size to use for internal read buffers

executor

ExecutorService to use when collecting content

cacheStrategy

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

Source
FileService.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
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(systemPath: String, pathPrefix: String = "", pathCollector: (File, Config, Request) ⇒ Task[Option[Response]] = filesOnly, bufferSize: Int = 50*1024, executor: ExecutorService = DefaultPool, cacheStrategy: CacheStrategy = NoopCacheStrategy)

    systemPath

    path prefix to the folder from which content will be served

    pathPrefix

    prefix of Uri from which content will be served

    pathCollector

    function that performs the work of collecting the file or rendering the directory into a response.

    bufferSize

    buffer size to use for internal read buffers

    executor

    ExecutorService to use when collecting content

    cacheStrategy

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

Value Members

  1. val bufferSize: Int
  2. val cacheStrategy: CacheStrategy
  3. val executor: ExecutorService
  4. val pathCollector: (File, Config, Request) ⇒ Task[Option[Response]]
  5. val pathPrefix: String
  6. val systemPath: String