Class/Object

io.youi.client

HttpClient

Related Docs: object HttpClient | package client

Permalink

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, Serializable, Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpClient
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def appendParams(params: (String, String)*): HttpClient

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. macro def call[Response]: Future[Response]

    Permalink

    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

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def content(content: Option[Content]): HttpClient

    Permalink
  10. def content(content: Content): HttpClient

    Permalink
  11. def dropNullValuesInJson(dropNullValuesInJson: Boolean): HttpClient

    Permalink
  12. val dropNullValuesInJson: Boolean

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def failOnHttpStatus(failOnHttpStatus: Boolean): HttpClient

    Permalink
  15. val failOnHttpStatus: Boolean

    Permalink
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get: HttpClient

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def header(key: String, value: String): HttpClient

    Permalink
  20. def header(header: Header): HttpClient

    Permalink
  21. def headers(headers: Headers, replace: Boolean = false): HttpClient

    Permalink
  22. def ignoreSSLCertificates: HttpClient

    Permalink
  23. val implementation: HttpClientImplementation

    Permalink
  24. def interceptor(interceptor: Interceptor): HttpClient

    Permalink
  25. val interceptor: Interceptor

    Permalink
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def json(json: Json): HttpClient

    Permalink
  28. def method(method: HttpMethod): HttpClient

    Permalink
  29. def method: HttpMethod

    Permalink
  30. def modify(f: (HttpRequest) ⇒ HttpRequest): HttpClient

    Permalink
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def noFailOnHttpStatus: HttpClient

    Permalink
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def param[T](name: String, value: T, default: T): HttpClient

    Permalink
  36. def params(params: (String, String)*): HttpClient

    Permalink
  37. def path(path: Path, append: Boolean = false): HttpClient

    Permalink
  38. def path: Path

    Permalink
  39. def post: HttpClient

    Permalink
  40. lazy val printer: Printer

    Permalink
    Attributes
    protected
  41. val request: HttpRequest

    Permalink
  42. macro def restful[Request, Response](request: Request): Future[Response]

    Permalink

    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]

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

    Permalink

    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

  44. def retries(retries: Int): HttpClient

    Permalink
  45. val retries: Int

    Permalink
  46. val retryDelay: FiniteDuration

    Permalink
  47. final def send(retries: Int = this.retries)(implicit executionContext: ExecutionContext): Future[HttpResponse]

    Permalink

    Sends an HttpRequest and receives an asynchronous HttpResponse future.

    Sends an HttpRequest and receives an asynchronous HttpResponse future.

    returns

    Future[HttpResponse]

  48. def sessionManager(sessionManager: SessionManager): HttpClient

    Permalink
  49. val sessionManager: Option[SessionManager]

    Permalink
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def url(url: URL): HttpClient

    Permalink
  52. def url: URL

    Permalink
  53. val validateSSLCertificates: Boolean

    Permalink
  54. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped