Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
- Known subtypes
- object HttpClient.type
Members list
Value members
Concrete methods
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.
Attributes
- Response
the response type
- Returns:
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.
Attributes
- Response
the response type
- Returns:
Try[Response]
Sets the content to be sent. If this request is set to GET, it will automatically be changed to POST.
Sets the content to be sent. If this request is set to GET, it will automatically be changed to POST.
Attributes
- content
the content to set
- Returns:
HttpClient
Sets the content to be sent optionally. If this request is set to GET, it will automatically be changed to POST.
Sets the content to be sent optionally. If this request is set to GET, it will automatically be changed to POST.
Attributes
- content
the content to set - if None, nothing will be changed
- Returns:
HttpClient
Convenience method to sending JSON content.
Convenience method to sending JSON content.
Attributes
- json
the JSON content to send
- Returns:
HttpClient
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.
Attributes
- Failure
the failure (non-OK response) response type
- Request
the request type
- Success
the success (OK response) response type
- request
the request object to convert to JSON and send
- Returns:
either Failure or Success
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.
Attributes
- Request
the request type
- Response
the response type
- request
the request object to convert to JSON and send
- Returns:
Future[Response]
Sends an HttpRequest and receives an asynchronous HttpResponse future.
Sends an HttpRequest and receives an asynchronous HttpResponse future.
Attributes
- Returns:
Future[HttpResponse]
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product