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) 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)

    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. val implementation: HttpClientImplementation

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

    Permalink
  24. val interceptor: Interceptor

    Permalink
  25. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def noFailOnHttpStatus: HttpClient

    Permalink
  31. final def notify(): Unit

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

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

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

    Permalink
  35. def path(path: Path): HttpClient

    Permalink
  36. def path: Path

    Permalink
  37. def post: HttpClient

    Permalink
  38. lazy val printer: Printer

    Permalink
    Attributes
    protected
  39. val request: HttpRequest

    Permalink
  40. 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]

  41. def retries(retries: Int): HttpClient

    Permalink
  42. val retries: Int

    Permalink
  43. val retryDelay: FiniteDuration

    Permalink
  44. 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]

  45. def sessionManager(sessionManager: SessionManager): HttpClient

    Permalink
  46. val sessionManager: Option[SessionManager]

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

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

    Permalink
  49. def url: URL

    Permalink
  50. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. 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