Rename wxWebSession::SetHeader() to AddCommonHeader()

The old name wasn't very clear and it was confusing to have methods with
the same name in wxWebSession and wxWebRequest.
This commit is contained in:
Vadim Zeitlin
2021-01-11 03:02:25 +01:00
parent 76167e271b
commit 4986850c63
4 changed files with 9 additions and 6 deletions

View File

@@ -581,10 +581,13 @@ public:
A good example for a session-wide request header is the @c User-Agent
header.
Calling this function with the same header name again replaces the
previously used value.
@param name Name of the header
@param value String value of the header
*/
void SetHeader(const wxString& name, const wxString& value);
void AddCommonHeader(const wxString& name, const wxString& value);
/**
Override the default temporary directory that may be used by the