Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::HTTPClient Class Referenceabstract
Inheritance diagram for duckdb::HTTPClient:

Public Member Functions

 HTTPClient (const string &proto_host_port)
virtual void Initialize (HTTPParams &http_params)=0
virtual unique_ptr< HTTPResponse > Get (GetRequestInfo &info)=0
virtual unique_ptr< HTTPResponse > Put (PutRequestInfo &info)=0
virtual unique_ptr< HTTPResponse > Head (HeadRequestInfo &info)=0
virtual unique_ptr< HTTPResponse > Delete (DeleteRequestInfo &info)=0
virtual unique_ptr< HTTPResponse > Post (PostRequestInfo &info)=0
virtual void Cleanup ()
unique_ptr< HTTPResponse > Request (BaseRequest &request)
const string & GetBaseUrl () const

Private Attributes

const string base_url
 The base URL (scheme + host + port) this client was created for.

Constructor & Destructor Documentation

◆ HTTPClient()

duckdb::HTTPClient::HTTPClient ( const string & proto_host_port)
inlineexplicit
53257 : base_url(proto_host_port) {
53258 }
const string base_url
The base URL (scheme + host + port) this client was created for.
Definition duckdb.cpp:53277

Member Function Documentation

◆ Cleanup()

virtual void duckdb::HTTPClient::Cleanup ( )
inlinevirtual
53267{};

◆ Request()

unique_ptr< HTTPResponse > duckdb::HTTPClient::Request ( BaseRequest & request)
294111 {
294112 switch (request.type) {
294113 case RequestType::GET_REQUEST:
294114 return Get(request.Cast<GetRequestInfo>());
294115 case RequestType::PUT_REQUEST:
294116 return Put(request.Cast<PutRequestInfo>());
294117 case RequestType::HEAD_REQUEST:
294118 return Head(request.Cast<HeadRequestInfo>());
294119 case RequestType::DELETE_REQUEST:
294120 return Delete(request.Cast<DeleteRequestInfo>());
294121 case RequestType::POST_REQUEST:
294122 return Post(request.Cast<PostRequestInfo>());
294123 default:
294124 throw InternalException("Unsupported request type");
294125 }
294126}

◆ GetBaseUrl()

const string & duckdb::HTTPClient::GetBaseUrl ( ) const
inline
53271 {
53272 return base_url;
53273 }

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