StaticMiddleware

io.github.edadma.apion.StaticMiddleware

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class StaticOptions(index: Boolean, dotfiles: String, etag: Boolean, maxAge: Int, redirect: Boolean, fallthrough: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(root: String, options: StaticOptions, fs: FSInterface): Handler

Creates static file serving middleware

Creates static file serving middleware

Value parameters

fs

File system implementation (defaults to RealFS)

options

Configuration options

root

Root directory to serve files from

Attributes