Virtru SDK for C++
2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
|
#include <network_interface.h>
Public Member Functions | |
virtual | ~INetwork ()=default |
virtual void | executeGet (const std::string &url, const HttpHeaders &headers, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0 |
virtual void | executePut (const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0 |
virtual void | executePost (const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0 |
virtual void | executePatch (const std::string &url, const HttpHeaders &headers, std::string &&body, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0 |
virtual void | executeHead (const std::string &url, const HttpHeaders &headers, HTTPServiceCallback &&callback, const std::string &certAuth="", const std::string &clientKeyFileName="", const std::string &clientCertFileName="")=0 |
An interface for handling network request.
If the consumer wants to provide their own network interface, this interface needs to implemented.
|
virtualdefault |
|
pure virtual |
Execute a get request and on completion the callback is executed.
url | - The url (e.g., "https://developer.virtru.com/docs/sdk"). |
headers | - The http headers used by network service when performing HTTP operation. |
callback | - The response callback. |
|
pure virtual |
Execute a head request and on completion the callback is executed.
url | - The url (e.g., "https://developer.virtru.com/docs/sdk"). |
headers | - The http headers used by network service when performing HTTP operation. |
callback | - The response callback. |
|
pure virtual |
Execute a patch request and on completion the callback is executed.
url | - The url (e.g., "https://api.virtru.com/api/policies"). |
headers | - The http headers used by network service when performing HTTP operation. |
body | - The HTTP body part of the request |
callback | - The response callback. |
|
pure virtual |
Execute a post request and on completion the callback is executed.
url | - The url (e.g., "https://api.virtru.com/api/entityobject"). |
headers | - The http headers used by network service when performing HTTP operation. |
body | - The HTTP body part of the request |
callback | - The response callback. |
|
pure virtual |
Execute a put request and on completion the callback is executed.
url | - The url (e.g., "https://api.virtru.com/api/entityobject"). |
headers | - The http headers used by network service when performing HTTP operation. |
body | - The HTTP body part of the request |
callback | - The response callback. |