object FileService
- Source
- FileService.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- FileService
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
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
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.