#include <transport.hpp>
Public Member Functions | |
| virtual | ~Transport () |
| virtual anch::rest::Response | send (const std::string &url, const anch::rest::Request &request)=0 |
HTTP transport: sends requests with a native HTTP library.
|
virtual |
Transport destructor
|
pure virtual |
Send request. The response body is fully read.
| url | the request URL (scheme, host, encoded path and query) |
| request | the request (method, headers and body are used) |
| anch::rest::TransportError | when request fails |
Implemented in anch::rest::CurlTransport.