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
- Alphabetic
- By Inheritance
- HttpClient
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new HttpClient(request: HttpRequest, implementation: HttpClientImplementation, retries: Int, retryDelay: FiniteDuration, sessionManager: Option[SessionManager], interceptor: Interceptor, dropNullValuesInJson: Boolean, failOnHttpStatus: Boolean, validateSSLCertificates: Boolean)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def appendParams(params: (String, String)*): HttpClient
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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]
- def clearSessionManager(): HttpClient
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def content(content: Option[Content]): HttpClient
- def content(content: Content): HttpClient
- def dropNullValuesInJson(dropNullValuesInJson: Boolean): HttpClient
- val dropNullValuesInJson: Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def failOnHttpStatus(failOnHttpStatus: Boolean): HttpClient
- val failOnHttpStatus: Boolean
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get: HttpClient
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def header(key: String, value: String): HttpClient
- def header(header: Header): HttpClient
- def headers(headers: Headers, replace: Boolean = false): HttpClient
- def ignoreSSLCertificates: HttpClient
- val implementation: HttpClientImplementation
- def interceptor(interceptor: Interceptor): HttpClient
- val interceptor: Interceptor
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json(json: Json): HttpClient
- def method(method: HttpMethod): HttpClient
- def method: HttpMethod
- def modify(f: (HttpRequest) => HttpRequest): HttpClient
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noFailOnHttpStatus: HttpClient
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def param[T](name: String, value: T, default: T): HttpClient
- def params(params: (String, String)*): HttpClient
- def path(path: Path, append: Boolean = false): HttpClient
- def path: Path
- def post: HttpClient
- lazy val printer: Printer
- Attributes
- protected
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val request: HttpRequest
- 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]
- 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
- def retries(retries: Int): HttpClient
- val retries: Int
- val retryDelay: FiniteDuration
- 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]
- def sessionManager(sessionManager: SessionManager): HttpClient
- val sessionManager: Option[SessionManager]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def url(url: URL): HttpClient
- def url: URL
- val validateSSLCertificates: Boolean
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()