|
OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
|
#include <CurlHttpTransport.h>
Public Member Functions | |
| long | post (const HttpRequest &request, const ResponseObserver &observer) override |
| HttpResponse | post (const HttpRequest &request) |
Public Member Functions inherited from OpenAnima::Http::HttpTransport | |
| HttpTransport (const HttpTransport &)=delete | |
| Transports are used through a pointer, so copying and moving are not offered. | |
| HttpTransport & | operator= (const HttpTransport &)=delete |
| HttpTransport (HttpTransport &&)=delete | |
| HttpTransport & | operator= (HttpTransport &&)=delete |
| HttpResponse | post (const HttpRequest &request) |
Static Public Member Functions | |
| static std::shared_ptr< HttpTransport > | create () |
Additional Inherited Members | |
Protected Member Functions inherited from OpenAnima::Http::HttpTransport | |
| HttpTransport ()=default | |
| Only derived classes build a transport. | |
HTTP transport built on libcurl, the one client library that offers TLS on both Windows and Linux without platform-specific code.
|
static |
|
inline |
Performs a blocking POST and returns the whole answer.
| request | Fully built request. |
| TransportError | when the exchange cannot be completed at all. |
References OpenAnima::Http::HttpTransport::post().
|
overridevirtual |
Performs a blocking POST and reports the answer while it arrives.
The same contract as the interface, written out again because the interface has two post members and a @copydoc cannot say which one counts.
| request | Fully built request. |
| observer | Where the status and the body go, as they arrive. |
| TransportError | when the exchange cannot be completed at all. |
Implements OpenAnima::Http::HttpTransport.