final case class Config[F[_]](basePath: String, blockingExecutionContext: ExecutionContext, pathPrefix: String = "", bufferSize: Int = 50 * 1024, cacheStrategy: CacheStrategy[F] = NoopCacheStrategy[F], preferGzipped: Boolean = false) extends Product with Serializable
org.http4s.server.staticcontent.ResourceService configuration
- basePath
prefix of the path files will be served from
- blockingExecutionContext
ExecutionContext
to use when collecting content- pathPrefix
prefix of the Uri that content will be served from
- bufferSize
size hint of internal buffers to use when serving resources
- cacheStrategy
strategy to use for caching purposes. Default to no caching.
- preferGzipped
whether to serve pre-gzipped files (with extension ".gz") if they exist
- Source
- ResourceService.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(basePath: String, blockingExecutionContext: ExecutionContext, pathPrefix: String = "", bufferSize: Int = 50 * 1024, cacheStrategy: CacheStrategy[F] = NoopCacheStrategy[F], preferGzipped: Boolean = false)
- basePath
prefix of the path files will be served from
- blockingExecutionContext
ExecutionContext
to use when collecting content- pathPrefix
prefix of the Uri that content will be served from
- bufferSize
size hint of internal buffers to use when serving resources
- cacheStrategy
strategy to use for caching purposes. Default to no caching.
- preferGzipped
whether to serve pre-gzipped files (with extension ".gz") if they exist
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[F], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val basePath: String
- val blockingExecutionContext: ExecutionContext
- val bufferSize: Int
- val cacheStrategy: CacheStrategy[F]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def ensuring(cond: (Config[F]) ⇒ Boolean, msg: ⇒ Any): Config[F]
- def ensuring(cond: (Config[F]) ⇒ Boolean): Config[F]
- def ensuring(cond: Boolean, msg: ⇒ Any): Config[F]
- def ensuring(cond: Boolean): Config[F]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pathPrefix: String
- val preferGzipped: Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- @native() @throws( ... )
- def →[B](y: B): (Config[F], B)