Loading...
Searching...
No Matches
NetworkRequestabstract

#include <Ultralight/NetworkRequest.h>

Overview

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.
 

Constructor & Destructor Documentation

◆ ~NetworkRequest()

virtual ~NetworkRequest ( )
inlinevirtual

Member Function Documentation

◆ EnforcePinnedPublicKey()

virtual void EnforcePinnedPublicKey ( const String & public_key)
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

◆ httpMethod()

virtual String httpMethod ( ) const
pure virtual

The HTTP method (eg, "POST" or "GET")

◆ httpOrigin()

virtual String httpOrigin ( ) const
pure virtual

The origin of the request.

◆ httpUserAgent()

virtual String httpUserAgent ( ) const
pure virtual

The user-agent of the request.

◆ url()

virtual String url ( ) const
pure virtual

URL of the request.

◆ urlHost()

virtual String urlHost ( ) const
pure virtual

The host portion of the URL.

◆ urlProtocol()

virtual String urlProtocol ( ) const
pure virtual

The protocol of the URL (eg, "http")


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