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[F[_]](systemPath: String, pathCollector: PathCollector[F], pathPrefix: String, bufferSize: Int, blockingExecutionContext: ExecutionContext, cacheStrategy: CacheStrategy[F]) 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
- pathCollector
function that performs the work of collecting the file or rendering the directory into a response.
- pathPrefix
prefix of Uri from which content will be served
- bufferSize
buffer size to use for internal read buffers
- blockingExecutionContext
ExecutionContext
to use for blocking I/O- cacheStrategy
strategy to use for caching purposes. Default to no caching.
- type PathCollector[F[_]] = (File, Config[F], Request[F]) ⇒ OptionT[F, Response[F]]
Value Members
- object Config extends Serializable