skinny.engine.package.scala Maven / Gradle / Ivy
The newest version!
package skinny
import skinny.engine.control.HaltPassControl
import skinny.engine.data.{ MapWithIndifferentAccess, MultiMapHeadView, MultiMap }
import skinny.engine.routing.Route
import scala.language.implicitConversions
package object engine
extends HaltPassControl // make halt and pass visible to helpers outside the DSL
// with DefaultValues // make defaults visible
{
object RouteTransformer {
implicit def fn2transformer(fn: Route => Route): RouteTransformer = new RouteTransformer {
override def apply(route: Route): Route = fn(route)
}
}
trait RouteTransformer {
def apply(route: Route): Route
}
type MultiParams = MultiMap
type Params = MultiMapHeadView[String, String] with MapWithIndifferentAccess[String]
type AsyncAction = (Context) => Any
type Action = () => Any
type ErrorHandler = PartialFunction[Throwable, Any]
type ContentTypeInferrer = PartialFunction[Any, String]
type RenderPipeline = PartialFunction[Any, Any]
val EnvironmentKey = "skinny.engine.environment"
val MultiParamsKey = "skinny.engine.MultiParams"
type Context = skinny.engine.context.SkinnyEngineContext
type AppBase = skinny.engine.SkinnyEngineBase
type SingleApp = skinny.engine.SkinnyEngineServlet
type WebApp = skinny.engine.SkinnyEngineFilter
type AsyncSingleApp = skinny.engine.AsyncSkinnyEngineServlet
type AsyncWebApp = skinny.engine.AsyncSkinnyEngineFilter
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy