Add GetNativeHandle() to wxWebSession and wxWebRequest

This allows to retrieve the handles used internally in order to do
something not supported by the public API yet.
This commit is contained in:
Vadim Zeitlin
2021-01-16 00:21:00 +01:00
parent a561cf199b
commit 65aad890e3
8 changed files with 108 additions and 1 deletions

View File

@@ -102,6 +102,11 @@ public:
wxFileOffset GetBytesExpectedToReceive() const wxOVERRIDE;
wxWebRequestHandle GetNativeHandle() const wxOVERRIDE
{
return (wxWebRequestHandle)m_task;
}
void HandleCompletion();
void HandleChallenge(wxWebAuthChallengeURLSession* challenge);
@@ -139,6 +144,11 @@ public:
wxVersionInfo GetLibraryVersionInfo() wxOVERRIDE;
wxWebSessionHandle GetNativeHandle() const wxOVERRIDE
{
return (wxWebSessionHandle)m_session;
}
WX_NSURLSession GetSession() { return m_session; }
WX_wxWebSessionDelegate GetDelegate() { return m_delegate; }