final class RoutesBuilder[F[_]] extends CompileRoutes[F, Tpe[F]]
CompileRoutes which accumulates routes and can build a HttpRoutes
- Alphabetic
- By Inheritance
- RoutesBuilder
- CompileRoutes
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def append(routes: IterableOnce[Tpe[F]]): RoutesBuilder.this.type
Append the routes into this RoutesBuilder
Append the routes into this RoutesBuilder
- routes
Routes to accumulate.
- returns
this
instance with its internal state mutated.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compile[T <: HList](route: RhoRoute[F, T]): RhoRoute[F, T]
Accumulate the RhoRoute into this RoutesBuilder
Accumulate the RhoRoute into this RoutesBuilder
This is the same as appending a the single route and returning the same route.
- T
HList
representation of the result of the route- route
RhoRoute to compile.
- returns
The RhoRoute passed to the method.
- Definition Classes
- RoutesBuilder → CompileRoutes
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def routes(): Seq[Tpe[F]]
Get a snapshot of the currently acquired routes
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toRoutes(middleware: RhoMiddleware[F] = identity): HttpRoutes[F]
Turn the accumulated routes into an
HttpRoutes
Turn the accumulated routes into an
HttpRoutes
- middleware
RhoMiddleware to apply to the collection of routes.
- returns
An
HttpRoutes
which can be mounted by http4s servers.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.