sttp.tapir.static

Type members

Classlikes

object Files
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.

Companion:
object
Companion:
class
case class HeadInput(path: List[String])
Companion:
object
object HeadOutput
Companion:
class
object Resources
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.

Companion:
object
Companion:
class
Companion:
object
Companion:
class
case class StaticInput(path: List[String], ifNoneMatch: Option[List[ETag]], ifModifiedSince: Option[Instant], range: Option[Range], acceptEncoding: Option[String])
trait StaticOutput[+T]
Companion:
object
Companion:
class

Static content endpoints, including files and resources.

Static content endpoints, including files and resources.

Value members

Concrete methods

def defaultETag(lastModified: Long, length: Long): ETag