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