Definition at line 71 of file UrlClient.cpp.
◆ cUrlClientRequest()
◆ CallErrorCallback()
void cUrlClientRequest::CallErrorCallback |
( |
const AString & |
a_ErrorMessage | ) |
|
|
inline |
Calls the error callback with the specified message, if it exists, and terminates the request.
Definition at line 97 of file UrlClient.cpp.
◆ DoRequest()
◆ GetCallbacks()
◆ GetOwnCert()
◆ GetOwnPrivKey()
◆ GetTrustedRootCAs()
Returns the parsed TrustedRootCAs from the options, or an empty pointer if the option is not set.
Throws a std::runtime_error if CAs are provided, but parsing them fails.
Definition at line 151 of file UrlClient.cpp.
◆ OnConnected()
void cUrlClientRequest::OnConnected |
( |
cTCPLink & |
a_Link | ) |
|
|
overrideprotectedvirtual |
◆ OnError()
virtual void cUrlClientRequest::OnError |
( |
int |
a_ErrorCode, |
|
|
const AString & |
a_ErrorMsg |
|
) |
| |
|
inlineoverrideprotectedvirtual |
◆ OnLinkCreated()
virtual void cUrlClientRequest::OnLinkCreated |
( |
cTCPLinkPtr |
a_Link | ) |
|
|
inlineoverrideprotectedvirtual |
◆ OnReceivedData()
void cUrlClientRequest::OnReceivedData |
( |
const char * |
a_Data, |
|
|
size_t |
a_Length |
|
) |
| |
|
overrideprotectedvirtual |
◆ OnRemoteClosed()
void cUrlClientRequest::OnRemoteClosed |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Called when the remote end closes the connection.
The link is still available for connection information query (IP / port). Sending data on the link is not an error, but the data won't be delivered.
Implements cTCPLink::cCallbacks.
Definition at line 625 of file UrlClient.cpp.
◆ OnTlsHandshakeCompleted()
void cUrlClientRequest::OnTlsHandshakeCompleted |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
Called when the TLS handshake has been completed and communication can continue regularly.
Has an empty default implementation, so that link callback descendants don't need to specify TLS handlers when they don't use TLS at all.
Reimplemented from cTCPLink::cCallbacks.
Definition at line 601 of file UrlClient.cpp.
◆ RedirectTo()
void cUrlClientRequest::RedirectTo |
( |
const AString & |
a_RedirectUrl | ) |
|
◆ Request()
◆ ShouldAllowRedirects()
bool cUrlClientRequest::ShouldAllowRedirects |
( |
| ) |
const |
◆ cHttpSchemeHandler
◆ m_Body
Body to be sent with the request, if any.
Definition at line 186 of file UrlClient.cpp.
◆ m_Callbacks
Callbacks that report progress and results of the request.
Definition at line 180 of file UrlClient.cpp.
◆ m_Headers
Extra headers to be sent with the request (besides the normal ones).
Definition at line 183 of file UrlClient.cpp.
◆ m_Link
std::weak_ptr<cTCPLink> cUrlClientRequest::m_Link |
|
protected |
◆ m_Method
AString cUrlClientRequest::m_Method |
|
protected |
Method to be used for the request.
Definition at line 170 of file UrlClient.cpp.
◆ m_NumRemainingRedirects
int cUrlClientRequest::m_NumRemainingRedirects |
|
protected |
The number of redirect attempts that will still be followed.
If the response specifies a redirect and this is nonzero, the redirect is followed. If the response specifies a redirect and this is zero, a redirect loop is reported as an error.
Definition at line 204 of file UrlClient.cpp.
◆ m_Options
Extra options to be used for the request.
Definition at line 189 of file UrlClient.cpp.
◆ m_SchemeHandler
std::shared_ptr<cSchemeHandler> cUrlClientRequest::m_SchemeHandler |
|
protected |
The handler that "talks" the protocol specified in m_UrlScheme, handles all the sending and receiving.
Definition at line 196 of file UrlClient.cpp.
◆ m_Self
weak_ptr to self, so that this object can keep itself alive as needed by calling lock(), and pass self as callbacks to cNetwork functions.
Definition at line 193 of file UrlClient.cpp.
◆ m_Url
◆ m_UrlFragment
AString cUrlClientRequest::m_UrlFragment |
|
protected |
◆ m_UrlHost
AString cUrlClientRequest::m_UrlHost |
|
protected |
◆ m_UrlPassword
AString cUrlClientRequest::m_UrlPassword |
|
protected |
◆ m_UrlPath
AString cUrlClientRequest::m_UrlPath |
|
protected |
◆ m_UrlPort
UInt16 cUrlClientRequest::m_UrlPort |
|
protected |
◆ m_UrlQuery
AString cUrlClientRequest::m_UrlQuery |
|
protected |
◆ m_UrlScheme
AString cUrlClientRequest::m_UrlScheme |
|
protected |
Individual components of the URL that will be requested.
Definition at line 176 of file UrlClient.cpp.
◆ m_UrlUsername
AString cUrlClientRequest::m_UrlUsername |
|
protected |
The documentation for this class was generated from the following file: