|
| | Connection (const std::string &address, const std::map< std::string, std::string > &headerEntries) |
| |
| | Connection (const Connection &)=delete |
| |
| | ~Connection () |
| |
| Connection & | operator= (const Connection &)=delete |
| |
| Response | fetchPage (const std::string &request) override |
| |
| std::unique_ptr< ISseConnection > | subscribe (const std::string &request, EventCallback callback) override |
| | Subscribe to an SSE endpoint.
|
| |
| | ~ThreadedConnection () override |
| |
| | BaseConnection (const std::string &address, const std::map< std::string, std::string > &headerEntries) |
| |
| std::expected< std::string, HttpError > | fetch (const std::string &request) final |
| | Perform a single HTTP request.
|
| |
| std::expected< std::string, HttpError > | fetch (const std::string &request, IPaginationStrategy &strategy) final |
| | Perform requests with automatic pagination.
|
| |
| CancellationToken | fetch (const std::string &request, FetchCallback onSuccess, ErrorCallback onError={}) final |
| | Perform an HTTP GET request asynchronously.
|
| |
| CancellationToken | fetch (const std::string &request, IPaginationStrategy &strategy, BodyCallback onSuccess, ErrorCallback onError={}) final |
| | Perform paginated requests asynchronously.
|
| |
| | BaseConnection (const std::string &address, const std::map< std::string, std::string > &headerEntries) |
| |
| const std::string & | url () const final |
| | return API url
|
| |
| std::expected< Response, HttpError > | fetchResponse (const std::string &url) final |
| | Perform a single HTTP request returning the full response.
|
| |
| std::string | get (const std::string &) final |
| | perform a request to api
|
| |
| virtual | ~IConnection ()=default |
| |