the directory to save response content of a non-textual type
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.
the response type
the URL of the endpoint
the headers if any to provide
error handling support if the response status is not Success
circe decoding of the Response
Future[Response]
Default error handler for restful bad response statuses.
Default error handler for restful bad response statuses.
the type of response
throws a RuntimeException when an error occurs
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.
the request type
the response type
the URL of the endpoint
the request instance
the headers if any to provide
error handling support if the response status is not Success
circe encoding of the Request
circe decoding of the Response
Future[Response]
the directory to save response content of a non-textual type
Sends an HttpRequest and receives an asynchronous HttpResponse future.
Sends an HttpRequest and receives an asynchronous HttpResponse future.
the request to send
the number of times to retry a failed request. This defaults to zero as most requests are not idempotent and calling multiple times can cause side-effects
if a failure occurs and a retry must occur, how long to wait until retrying. This defaults to 5.0 seconds
Future[HttpResponse]
Asynchronous HttpClient for simple request response support.
Adds support for simple restful request/response JSON support.
the directory to save response content of a non-textual type