forgeant docs-test-0
Build LLM-powered agents in C++
Loading...
Searching...
No Matches
forgeant::CurlHttpClient Class Reference

#include <curl_client.hpp>

Inheritance diagram for forgeant::CurlHttpClient:
Collaboration diagram for forgeant::CurlHttpClient:

Classes

struct  Config
 

Public Member Functions

 CurlHttpClient ()
 
 CurlHttpClient (Config config)
 
 ~CurlHttpClient () override
 
 CurlHttpClient (const CurlHttpClient &)=delete
 
CurlHttpClientoperator= (const CurlHttpClient &)=delete
 
 CurlHttpClient (CurlHttpClient &&other) noexcept
 
CurlHttpClientoperator= (CurlHttpClient &&other) noexcept
 
HttpResponse post (const std::string &url, const HttpHeaders &headers, const std::string &body) override
 
std::future< HttpResponseasync_post (const std::string &url, const HttpHeaders &headers, const std::string &body) override
 
HttpResponse post_stream (const std::string &url, const HttpHeaders &headers, const std::string &body, StreamCallback on_chunk) override
 
- Public Member Functions inherited from forgeant::HttpClient
virtual ~HttpClient ()=default
 
 HttpClient ()=default
 
 HttpClient (const HttpClient &)=delete
 
HttpClientoperator= (const HttpClient &)=delete
 
 HttpClient (HttpClient &&)=default
 
HttpClientoperator= (HttpClient &&)=default
 

Constructor & Destructor Documentation

◆ CurlHttpClient() [1/4]

forgeant::CurlHttpClient::CurlHttpClient ( )

◆ CurlHttpClient() [2/4]

forgeant::CurlHttpClient::CurlHttpClient ( Config  config)
explicit

◆ ~CurlHttpClient()

forgeant::CurlHttpClient::~CurlHttpClient ( )
override

◆ CurlHttpClient() [3/4]

forgeant::CurlHttpClient::CurlHttpClient ( const CurlHttpClient )
delete

◆ CurlHttpClient() [4/4]

forgeant::CurlHttpClient::CurlHttpClient ( CurlHttpClient &&  other)
noexcept

Member Function Documentation

◆ async_post()

std::future< HttpResponse > forgeant::CurlHttpClient::async_post ( const std::string &  url,
const HttpHeaders headers,
const std::string &  body 
)
overridevirtual

Implements forgeant::HttpClient.

◆ operator=() [1/2]

CurlHttpClient & forgeant::CurlHttpClient::operator= ( const CurlHttpClient )
delete

◆ operator=() [2/2]

CurlHttpClient & forgeant::CurlHttpClient::operator= ( CurlHttpClient &&  other)
noexcept

◆ post()

HttpResponse forgeant::CurlHttpClient::post ( const std::string &  url,
const HttpHeaders headers,
const std::string &  body 
)
overridevirtual

Implements forgeant::HttpClient.

◆ post_stream()

HttpResponse forgeant::CurlHttpClient::post_stream ( const std::string &  url,
const HttpHeaders headers,
const std::string &  body,
StreamCallback  on_chunk 
)
overridevirtual

Implements forgeant::HttpClient.


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