Apply suggestions from code review
Co-authored-by: VZ <vz-github@zeitlins.org>
This commit is contained in:
@@ -98,7 +98,7 @@ public:
|
|||||||
|
|
||||||
void DisablePeerVerify(bool disable) { m_peerVerifyDisabled = disable; }
|
void DisablePeerVerify(bool disable) { m_peerVerifyDisabled = disable; }
|
||||||
|
|
||||||
bool IsPeerVerifyDisabled() { return m_peerVerifyDisabled; }
|
bool IsPeerVerifyDisabled() const { return m_peerVerifyDisabled; }
|
||||||
|
|
||||||
void SetState(wxWebRequest::State state, const wxString& failMsg = wxString());
|
void SetState(wxWebRequest::State state, const wxString& failMsg = wxString());
|
||||||
|
|
||||||
|
@@ -190,7 +190,7 @@ public:
|
|||||||
|
|
||||||
void DisablePeerVerify(bool disable = true);
|
void DisablePeerVerify(bool disable = true);
|
||||||
|
|
||||||
bool IsPeerVerifyDisabled();
|
bool IsPeerVerifyDisabled() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Ctor is only used by wxWebSession.
|
// Ctor is only used by wxWebSession.
|
||||||
|
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
wxHTTP can thus be used to create a (basic) HTTP @b client.
|
wxHTTP can thus be used to create a (basic) HTTP @b client.
|
||||||
|
|
||||||
@note If you want HTTPS, IPv6, Proxy detection, authentication, etc.
|
@note In practice, for any but the most trivial cases, e.g. if you need HTTPS, HTTP/2 or IPv6,
|
||||||
support consider using wxWebRequest instead.
|
proxy detection, authentication, etc. support please use wxWebRequest instead.
|
||||||
|
|
||||||
@library{wxnet}
|
@library{wxnet}
|
||||||
@category{net}
|
@category{net}
|
||||||
@@ -176,4 +176,3 @@ public:
|
|||||||
const wxString& data,
|
const wxString& data,
|
||||||
const wxMBConv& conv = wxConvUTF8);
|
const wxMBConv& conv = wxConvUTF8);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -414,7 +414,7 @@ public:
|
|||||||
|
|
||||||
@see DisablePeerVerify()
|
@see DisablePeerVerify()
|
||||||
*/
|
*/
|
||||||
bool IsPeerVerifyDisabled();
|
bool IsPeerVerifyDisabled() const;
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
/** @name Progress methods
|
/** @name Progress methods
|
||||||
|
@@ -522,7 +522,7 @@ void wxWebRequest::DisablePeerVerify(bool disable)
|
|||||||
m_impl->DisablePeerVerify(disable);
|
m_impl->DisablePeerVerify(disable);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWebRequest::IsPeerVerifyDisabled()
|
bool wxWebRequest::IsPeerVerifyDisabled() const
|
||||||
{
|
{
|
||||||
return m_impl->IsPeerVerifyDisabled();
|
return m_impl->IsPeerVerifyDisabled();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user