class
HttpAdapterSpray extends HttpAdapter with Logging
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
implicit
val
actorSystem: ActorSystem
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
debug(msg: ⇒ Any, t: ⇒ Throwable): Unit
-
def
debug(msg: ⇒ Any): Unit
-
def
doRequest(scheme: String, authority: String, path: String, method: String, key: String, body: Option[String] = None, params: Map[String, Option[String]] = Map.empty): Future[Response]
-
-
-
def
error(msg: ⇒ Any, t: ⇒ Throwable): Unit
-
def
error(msg: ⇒ Any): Unit
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
def
info(msg: ⇒ Any, t: ⇒ Throwable): Unit
-
def
info(msg: ⇒ Any): Unit
-
def
isDebugEnabled: Boolean
-
def
isErrorEnabled: Boolean
-
def
isInfoEnabled: Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
isTraceEnabled: Boolean
-
def
isWarnEnabled: Boolean
-
def
logger: Logger
-
def
loggerName: String
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
shutdown(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
implicit
val
timeout: Timeout
-
def
toString(): String
-
def
trace(msg: ⇒ Any, t: ⇒ Throwable): Unit
-
def
trace(msg: ⇒ Any): Unit
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
warn(msg: ⇒ Any, t: ⇒ Throwable): Unit
-
def
warn(msg: ⇒ Any): Unit
An HttpAdapter built on HTTP client support of the Spray HTTP toolkit.
Akka and Actor Systems
Spray is built upon Akka I/O and uses an Akka ActorSystem to handle HTTP I/O. By default,
HttpAdapterSpray
creates anActorSystem
for its own use so that it works out of the box. If you are using it within an Akka application, however, it is possible to specify theActorSystem
within which it will run using an implicit parameter.Using a custom ActorSystem, implicitly for a scope
Using a custom ActorSystem
Move the timeout constructor param to config