|
| HttpSender () |
| Constructor: More...
|
|
virtual | ~HttpSender () |
| Destructor.
|
|
virtual void | setProxy (const std::string &proxy)=0 |
| Set a proxy server.
|
|
virtual int | sendRequest (const std::string &method=std::string(HTTP_SENDER_DEFAULT_METHOD), const std::string &path=std::string(HTTP_SENDER_DEFAULT_PATH), const std::vector< std::pair< std::string, std::string >> &headers={}, const std::string &payload=std::string())=0 |
| HTTP(S) request: pass method and path, HTTP headers and POST/PUT payload.
|
|
virtual std::string | getHostPort ()=0 |
|
virtual std::string | getHTTPResponse ()=0 |
|
virtual void | setAuthMethod (std::string &authMethod)=0 |
|
virtual void | setAuthBasicCredentials (std::string &authBasicCredentials)=0 |
|
virtual void | setOCSNamespace (std::string &OCSNamespace)=0 |
|
virtual void | setOCSTenantId (std::string &OCSTenantId)=0 |
|
virtual void | setOCSClientId (std::string &OCSClientId)=0 |
|
virtual void | setOCSClientSecret (std::string &OCSClientSecret)=0 |
|
virtual void | setOCSToken (std::string &OCSToken)=0 |
|
◆ HttpSender()
HttpSender::HttpSender |
( |
| ) |
|
Constructor:
Constructor.
◆ createDebugTraceDirectory()
bool HttpSender::createDebugTraceDirectory |
( |
| ) |
|
|
static |
Creates the '/logs/debug-trace' subdirectory in the Fledge data directory.
This function ensures that both the 'logs' directory and the 'debug-trace' directory are created if they do not exist.
◆ getOMFTracePath()
std::string HttpSender::getOMFTracePath |
( |
| ) |
|
|
static |
Constructs the file path for the OMF log.
- Returns
- A string representing the path to the OMF log file.
The documentation for this class was generated from the following files:
- C/plugins/common/include/http_sender.h
- C/plugins/common/http_sender.cpp