Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- 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.
Type parameters
- Response
-
the response type
Attributes
- 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.
Type parameters
- Response
-
the response type
Attributes
- 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.
Value parameters
- content
-
the content to set
Attributes
- 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.
Value parameters
- content
-
the content to set - if None, nothing will be changed
Attributes
- Returns
-
HttpClient
Convenience method to sending JSON content.
Convenience method to sending JSON content.
Value parameters
- json
-
the JSON content to send
Attributes
- 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.
Type parameters
- Failure
-
the failure (non-OK response) response type
- Request
-
the request type
- Success
-
the success (OK response) response type
Value parameters
- request
-
the request object to convert to JSON and send
Attributes
- 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.
Type parameters
- Request
-
the request type
- Response
-
the response type
Value parameters
- request
-
the request object to convert to JSON and send
Attributes
- 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