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 method: HttpMethod

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def noFailOnHttpStatus: HttpClient

    Permalink
  32. final def notify(): Unit

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

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

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

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

    Permalink
  37. def path: Path

    Permalink
  38. def post: HttpClient

    Permalink
  39. lazy val printer: Printer

    Permalink
    Attributes
    protected
  40. val request: HttpRequest

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

  42. 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

  43. def retries(retries: Int): HttpClient

    Permalink
  44. val retries: Int

    Permalink
  45. val retryDelay: FiniteDuration

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

  47. def sessionManager(sessionManager: SessionManager): HttpClient

    Permalink
  48. val sessionManager: Option[SessionManager]

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

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

    Permalink
  51. def url: URL

    Permalink
  52. final def wait(): Unit

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

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