Add ability to send custom HTTP headers

This commit is contained in:
Chocobo1 2020-04-22 17:15:12 +08:00
parent f1d02c6aee
commit bb80b378c1
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
8 changed files with 123 additions and 0 deletions

View file

@ -157,4 +157,13 @@ private:
bool m_isHostHeaderValidationEnabled;
bool m_isHttpsEnabled;
QString m_contentSecurityPolicy;
// Custom HTTP headers
struct CustomHTTPHeader
{
QString name;
QString value;
};
bool m_useCustomHTTPHeaders;
QVector<CustomHTTPHeader> m_customHTTPHeaders;
};