class
HttpMuxer extends Service[Request, Response]
Instance Constructors
-
new
HttpMuxer()
-
new
HttpMuxer(handlers: Seq[(String, Service[Request, Response])])
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
def
andThen[A](g: (Future[Response]) ⇒ A): (Request) ⇒ A
-
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
close(deadline: Time): Future[Unit]
-
def
close(after: Duration): Future[Unit]
-
final
def
close(): Future[Unit]
-
def
compose[A](g: (A) ⇒ Request): (A) ⇒ Future[Response]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
val
handlers: Seq[(String, Service[Request, Response])]
-
def
hashCode(): Int
-
def
isAvailable: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[Req1](f: (Req1) ⇒ Request): Service[Req1, Response]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
patterns: Seq[String]
-
def
status: finagle.Status
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
withHandler(pattern: String, service: Service[Request, Response]): HttpMuxer
Deprecated Value Members
-
final
def
release(): Unit
Inherited from Closable
Inherited from AnyRef
Inherited from Any
A service that dispatches incoming requests to registered handlers. In order to choose which handler to dispatch the request to, we take the path of the request and match it with the patterns of the pre-registered handlers. The pattern matching follows these rules:
NOTE: When multiple pattern matches exist, the longest pattern wins.