Packages

object FileService

Source
FileService.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Config[F[_]](systemPath: String, pathCollector: PathCollector[F], pathPrefix: String, bufferSize: Int, cacheStrategy: CacheStrategy[F]) extends Product with Serializable

    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

    cacheStrategy

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

  2. type PathCollector[F[_]] = (File, Config[F], Request[F]) ⇒ OptionT[F, Response[F]]

Value Members

  1. object Config extends Serializable