Instance Constructors
-
new
HttpService
(route: Route)
Type Members
-
type
Receive
= PartialFunction[Any, Unit]
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
become
(behavior: Receive, discardOld: Boolean): Unit
-
def
clone
(): AnyRef
-
def
contextForRequest
(request: HttpRequest): RequestContext
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
def
finalizeResponse
(unverifiedResponse: HttpResponse): HttpResponse
-
def
getClass
(): java.lang.Class[_]
-
def
handle
(request: HttpRequest): Unit
-
def
handleCustomRejections
(rejections: List[Rejection]): HttpResponse
-
def
handleRejections
(rejections: List[Rejection]): HttpResponse
-
def
hashCode
(): Int
-
def
initialUnmatchedPath
(request: HttpRequest): String
-
def
isDefinedAt
(message: Any): Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
lazy val
log
: Log
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
implicit def
optionSelf
: Option[ActorRef]
-
def
postRestart
(reason: Throwable): Unit
-
def
postStart
(): Unit
-
def
postStop
(): Unit
-
def
preRestart
(reason: Throwable): Unit
-
def
preStart
(): Unit
-
def
receive
: PartialFunction[Any, Unit]
-
def
responderForRequest
(request: HttpRequest): (RoutingResult) ⇒ Unit
-
def
responseForException
(request: HttpRequest, e: Exception): HttpResponse
-
def
responseForRejections
(rejections: List[Rejection]): HttpResponse
-
def
responseFromRoutingResult
(rr: RoutingResult): Option[HttpResponse]
-
val
route
: Route
-
val
self
: ScalaActorRef
-
val
setDateHeader
: Boolean
-
implicit val
someSelf
: Some[ActorRef]
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
def
unbecome
(): Unit
-
def
unhandled
(msg: Any): Unit
-
def
verified
(response: HttpResponse): HttpResponse
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from Actor
Inherited from AnyRef
Inherited from Any
The default implementation of an HttpService. It combines the HttpServiceActor with the HttpServiceLogic. If you'd like to use a custom HttpServiceLogic you should generate a sub trait of HttpServiceLogic (e.g. CustomServiceLogic) and create your CustomHttpService with
In this way you can test your CustomServiceLogic with SprayTest without the need to fire up actual actors.