StaticContent

wvlet.airframe.http.StaticContent
See theStaticContent companion class
object StaticContent extends LogSupport

Helper for returning static contents

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

case class ClasspathResource(basePath: String) extends ResourceType

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait ResourceType
class Object
trait Matchable
class Any
Show all
case class FileResource(basePath: String) extends ResourceType

Attributes

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

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromDirectory(dirPath: String, relativePath: String): Response
def fromDirectory(dirPaths: List[String], relativePath: String): Response
def fromDirectory(basePath: String): StaticContent
def fromResource(basePath: String, relativePath: String): Response
def fromResource(basePaths: List[String], relativePath: String): Response
def fromResource(basePath: String): StaticContent

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods