| 13 | namespace http { |
| 14 | |
| 15 | struct HttpConfig { |
| 16 | std::string host; |
| 17 | std::string base_path; // Base path from URL (e.g., "/api" from |
| 18 | // "https://openrouter.ai/api") |
| 19 | bool use_ssl = true; |
| 20 | int connection_timeout_sec = 30; |
| 21 | int read_timeout_sec = 120; |
| 22 | bool verify_ssl_cert = true; |
| 23 | |
| 24 | // Retry configuration |
| 25 | retry::RetryConfig retry_config; |
| 26 | }; |
| 27 | |
| 28 | class HttpRequestHandler { |
| 29 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected