Ultralight C++ API 1.4.0
|
#include <Ultralight/NetworkRequest.h>
Interface for Network requests.
Public Member Functions | |
virtual | ~NetworkRequest () |
virtual String | url () const =0 |
URL of the request. | |
virtual String | urlHost () const =0 |
The host portion of the URL. | |
virtual String | urlProtocol () const =0 |
The protocol of the URL (eg, "http") | |
virtual String | httpMethod () const =0 |
The HTTP method (eg, "POST" or "GET") | |
virtual String | httpOrigin () const =0 |
The origin of the request. | |
virtual String | httpUserAgent () const =0 |
The user-agent of the request. | |
virtual void | EnforcePinnedPublicKey (const String &public_key)=0 |
Enforce additional TLS/SSL certificate validation by verifying the server's pinned public key. | |
|
inlinevirtual |
|
pure virtual |
Enforce additional TLS/SSL certificate validation by verifying the server's pinned public key.
The public key string can be any number of base64 encoded sha256 hashes preceded by "sha256//" and separated by ";".
For more info see the cURL docs: https://curl.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html
|
pure virtual |
The HTTP method (eg, "POST" or "GET")
|
pure virtual |
The origin of the request.
|
pure virtual |
The user-agent of the request.
|
pure virtual |
URL of the request.
|
pure virtual |
The host portion of the URL.
|
pure virtual |
The protocol of the URL (eg, "http")