Object

com.markfeeney.usher

Usher

Related Doc: package usher

Permalink

object Usher

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Usher
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Params(params: Map[String, Vector[String]]) extends Product with Serializable

    Permalink
  2. type SimpleMiddleware = ((Request) ⇒ Option[Response]) ⇒ Handler

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def ANY(r: Route): Middleware

    Permalink
  5. def DELETE(r: Route): Middleware

    Permalink
  6. def GET(r: Route): Middleware

    Permalink
  7. def HEAD(r: Route): Middleware

    Permalink
  8. def OPTIONS(r: Route): Middleware

    Permalink
  9. def POST(r: Route): Middleware

    Permalink
  10. def PUT(r: Route): Middleware

    Permalink
  11. object Simple

    Permalink

    Variations of the main HTTP verb matchers that hide continuations.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def context(r: Route): Middleware

    Permalink
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def get(req: Request): Option[Params]

    Permalink

    Return parsed route params stored on req, if any.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def ifRoute(route: Route): Middleware

    Permalink

    Middleware that calls handler with route params extracted if route matches request.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def notFound(msg: String): Handler

    Permalink

    Helper for very simple 404 pages

  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def routes(hs: Handler*): Handler

    Permalink

    Sequentially try each handler in hs until one returns a response.

    Sequentially try each handler in hs until one returns a response. If none of the hs return a response, the returned handler won't either. Used to be called firstOf, but marketing demanded a rename.

  28. def set(req: Request, params: Params): Request

    Permalink

    Set params to be the route params on req.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped