OpenAnima 0.2.0
Middleware for conversational NPCs that interact with the player, the world and each other
Loading...
Searching...
No Matches
Public Attributes | List of all members
OpenAnima::Http::HttpRequest Struct Reference

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
 

Detailed Description

A request issued by an inference provider.

Member Data Documentation

◆ keepGoing

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.

Returns
false to stop the exchange.

The documentation for this struct was generated from the following file: