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
org.http4s.server.staticcontent.FileService configuration
- 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
- 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(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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Config, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bufferSize: Int
- val cacheStrategy: CacheStrategy
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (Config) ⇒ Boolean, msg: ⇒ Any): Config
- def ensuring(cond: (Config) ⇒ Boolean): Config
- def ensuring(cond: Boolean, msg: ⇒ Any): Config
- def ensuring(cond: Boolean): Config
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executor: ExecutorService
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val pathCollector: (File, Config, Request) ⇒ Task[Option[Response]]
- val pathPrefix: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val systemPath: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Config, B)