final case class Config[F[_]](basePath: String, blocker: Blocker, 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
- blocker
execution context 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
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Config(basePath: String, blocker: Blocker, pathPrefix: String = "", bufferSize: Int = 50 * 1024, cacheStrategy: CacheStrategy[F] = NoopCacheStrategy[F], preferGzipped: Boolean = false)
- basePath
prefix of the path files will be served from
- blocker
execution context 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
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val basePath: String
- val blocker: Blocker
- val bufferSize: Int
- val cacheStrategy: CacheStrategy[F]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
- @throws( ... ) @native()