10Duke Enterprise C++ Client
|
#include <HTTPCall.h>
HTTP-call which executes the request and returns HTTPResponse.
Public Member Functions | |
virtual std::unique_ptr< tenduke::http::HTTPResponse > | execute ()=0 |
Executes the call synchronously. | |
|
pure virtual |
Executes the call synchronously.
NOTE: This is blocking call.
tenduke::net::NetworkingException | (or subclasses) when the call fails for various networking reasons like "no such host", "network timeout", "networking connection broken" and so on. Some of these are transient and thus re-triable, some indicate configuration error. |
tenduke::net::HTTPRequestException | when the call fails for various reasons, see documentation for the exception for details. NOTE HTTPCall does not throw exception if the request technically succeeds, but the server returns HTTP status code >= 400. It is responsibility of the caller to interpret the status code and act accordingly. |
Implemented in tenduke::http::curl::LibCurlHTTPCall.