NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::async::RequestOptions Struct Reference

Per-call knobs. More...

#include <http_client.h>

Public Attributes

int max_redirects = 0
 Max 3xx hops to follow automatically.
 
std::chrono::milliseconds timeout {0}
 Per-hop deadline covering connect + handshake + write + read of one HTTP exchange.
 

Detailed Description

Per-call knobs.

Default-constructed instance preserves the library's historical behavior (no timeout, no redirect-following).

Definition at line 66 of file http_client.h.

Member Data Documentation

◆ max_redirects

int neograph::async::RequestOptions::max_redirects = 0

Max 3xx hops to follow automatically.

Zero (default) = never follow; the 3xx response comes straight back to the caller with location populated. Redirects preserve the POST method and body for all 3xx codes (pragmatic for the LLM/MCP hosts we target — no 303 → GET downgrade).

Definition at line 78 of file http_client.h.

◆ timeout

std::chrono::milliseconds neograph::async::RequestOptions::timeout {0}

Per-hop deadline covering connect + handshake + write + read of one HTTP exchange.

Zero = no timeout (the default). Applied independently to each hop when following redirects rather than as a total budget.

Definition at line 71 of file http_client.h.


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