|
OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
|
A request issued by an inference provider. More...
#include <HttpTransport.h>
Public Attributes | |
| std::string | url |
| Absolute endpoint, scheme included. | |
| std::vector< HttpHeader > | headers |
| Headers sent verbatim. | |
| std::string | body |
| Raw payload, usually JSON. | |
| long | timeoutSeconds {60} |
| Longest gap with no bytes before giving up. | |
| std::function< bool()> | keepGoing |
A request issued by an inference provider.
| std::function<bool()> OpenAnima::Http::HttpRequest::keepGoing |
Asks whether the exchange should still be going.
Called on the client library's own timer, so it fires even while no data arrives: without it a caller could not abandon a stream that went quiet. Empty means the exchange is never abandoned.