io.keen.client.scala

HttpAdapterSpray

class HttpAdapterSpray extends HttpAdapter with Logging

An HttpAdapter built on HTTP client support of the 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 an ActorSystem 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 the ActorSystem within which it will run using an implicit parameter.

Source
HttpAdapterSpray.scala
Examples:
  1. Using a custom ActorSystem, implicitly for a scope

    implicit val system = ActorSystem("myapp-system")
    val adapter = new HttpAdapterSpray
  2. ,
  3. Using a custom ActorSystem

    val adapter = new HttpAdapterSpray()(ActorSystem("myapp-system"))
To do

Move the timeout constructor param to config

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpAdapterSpray
  2. Logging
  3. HttpAdapter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HttpAdapterSpray(httpTimeoutSeconds: Int = 10)(implicit actorSystem: ActorSystem = ...)

    httpTimeoutSeconds

    Sets a timeout for HTTP requests, in seconds.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit val actorSystem: ActorSystem

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def debug(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  10. def debug(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  11. 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]

    Perform an HTTP request.

    Perform an HTTP request.

    Definition Classes
    HttpAdapterSprayHttpAdapter
    To do

    Not even documenting the params yet because I'm in the midst of refactoring the hell out of this :-)

  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def error(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  15. def error(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. def info(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  20. def info(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  21. def isDebugEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. def isErrorEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  23. def isInfoEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def isTraceEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  26. def isWarnEnabled: Boolean

    Attributes
    protected
    Definition Classes
    Logging
  27. def logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  28. def loggerName: String

    Attributes
    protected
    Definition Classes
    Logging
  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. def shutdown(): Unit

    Shuts down HTTP client resources.

    Shuts down HTTP client resources.

    Disconnects any remaining connections. Both idle and active. If you are accessing Keen through a proxy that keeps connections alive this is useful.

    If HttpAdapterSpray's default ActorSystem is in use, it will be shut down; if a custom ActorSystem has been supplied, it will not.

    Definition Classes
    HttpAdapterSprayHttpAdapter
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. implicit val timeout: Timeout

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def trace(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  37. def trace(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging
  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. def warn(msg: ⇒ Any, t: ⇒ Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  42. def warn(msg: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logging

Inherited from Logging

Inherited from HttpAdapter

Inherited from AnyRef

Inherited from Any

Ungrouped