sttp.tapir.static.FilesOptions
See theFilesOptions companion object
case class FilesOptions[F[_]](calculateETag: MonadError[F] => File => F[Option[ETag]], fileFilter: List[String] => Boolean, defaultFile: Option[List[String]])
Value parameters
- defaultFile
-
path segments (relative to the system path from which files are read) of the file to return in case the one requested by the user isn't found. This is useful for SPA apps, where the same main application file needs to be returned regardless of the path.
- fileFilter
-
A file 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