Packages

case class HttpClient(request: HttpRequest, implementation: HttpClientImplementation, retries: Int, retryDelay: FiniteDuration, sessionManager: Option[SessionManager], interceptor: Interceptor, dropNullValuesInJson: Boolean, failOnHttpStatus: Boolean, validateSSLCertificates: Boolean) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpClient
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpClient(request: HttpRequest, implementation: HttpClientImplementation, retries: Int, retryDelay: FiniteDuration, sessionManager: Option[SessionManager], interceptor: Interceptor, dropNullValuesInJson: Boolean, failOnHttpStatus: Boolean, validateSSLCertificates: Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def appendParams(params: (String, String)*): HttpClient
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. macro def call[Response]: Future[Response]

    Builds on the send method by supporting basic restful calls that calls a URL and returns a case class as the response.

    Builds on the send method by supporting basic restful calls that calls a URL and returns a case class as the response.

    Response

    the response type

    returns

    Future[Response]

  7. def clearSessionManager(): HttpClient
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. def content(content: Option[Content]): HttpClient
  10. def content(content: Content): HttpClient
  11. def dropNullValuesInJson(dropNullValuesInJson: Boolean): HttpClient
  12. val dropNullValuesInJson: Boolean
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def failOnHttpStatus(failOnHttpStatus: Boolean): HttpClient
  15. val failOnHttpStatus: Boolean
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def get: HttpClient
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def header(key: String, value: String): HttpClient
  20. def header(header: Header): HttpClient
  21. def headers(headers: Headers, replace: Boolean = false): HttpClient
  22. def ignoreSSLCertificates: HttpClient
  23. val implementation: HttpClientImplementation
  24. def interceptor(interceptor: Interceptor): HttpClient
  25. val interceptor: Interceptor
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def json(json: Json): HttpClient
  28. def method(method: HttpMethod): HttpClient
  29. def method: HttpMethod
  30. def modify(f: (HttpRequest) => HttpRequest): HttpClient
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def noFailOnHttpStatus: HttpClient
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def param[T](name: String, value: T, default: T): HttpClient
  36. def params(params: (String, String)*): HttpClient
  37. def path(path: Path, append: Boolean = false): HttpClient
  38. def path: Path
  39. def post: HttpClient
  40. lazy val printer: Printer
    Attributes
    protected
  41. def productElementNames: Iterator[String]
    Definition Classes
    Product
  42. val request: HttpRequest
  43. macro def restful[Request, Response](request: Request): Future[Response]

    Builds on the send method by supporting basic restful calls that take a case class as the request and returns a case class as the response.

    Builds on the send method by supporting basic restful calls that take a case class as the request and returns a case class as the response.

    Request

    the request type

    Response

    the response type

    request

    the request object to convert to JSON and send

    returns

    Future[Response]

  44. macro def restfulEither[Request, Success, Failure](request: Request): Future[Either[Failure, Success]]

    Similar to the restful call, but provides a different return-type if the response is an error.

    Similar to the restful call, but provides a different return-type if the response is an error.

    Request

    the request type

    Success

    the success (OK response) response type

    Failure

    the failure (non-OK response) response type

    request

    the request object to convert to JSON and send

    returns

    either Failure or Success

  45. def retries(retries: Int): HttpClient
  46. val retries: Int
  47. val retryDelay: FiniteDuration
  48. final def send(retries: Int = this.retries)(implicit executionContext: ExecutionContext): Future[HttpResponse]

    Sends an HttpRequest and receives an asynchronous HttpResponse future.

    Sends an HttpRequest and receives an asynchronous HttpResponse future.

    returns

    Future[HttpResponse]

  49. def sessionManager(sessionManager: SessionManager): HttpClient
  50. val sessionManager: Option[SessionManager]
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. def url(url: URL): HttpClient
  53. def url: URL
  54. val validateSSLCertificates: Boolean
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped