sttp.tapir.static.ResourcesOptions
See theResourcesOptions companion object
case class ResourcesOptions[F[_]](useETags: Boolean, useGzippedIfAvailable: Boolean, resourceFilter: List[String] => Boolean, defaultResource: Option[List[String]])
Value parameters
- defaultResource
-
path segments (relative to the resource prefix from which resources are read) of the resource to return in case the one requested by the user isn't found. This is useful for SPA apps, where the same main application resource needs to be returned regardless of the path.
- resourceFilter
-
A resource will be exposed only if this function returns
true
.
Attributes
- Companion
- object
- Deprecated
-
[Since version 1.3.0]
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article