mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
Rename function
This commit is contained in:
@@ -35,7 +35,7 @@ void ResponseBuilder::status(const uint code, const QString &text)
|
||||
m_response.status = {code, text};
|
||||
}
|
||||
|
||||
void ResponseBuilder::header(const Header &header)
|
||||
void ResponseBuilder::setHeader(const Header &header)
|
||||
{
|
||||
m_response.headers[header.name] = header.value;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Http
|
||||
{
|
||||
public:
|
||||
void status(uint code = 200, const QString &text = QLatin1String("OK"));
|
||||
void header(const Header &header);
|
||||
void setHeader(const Header &header);
|
||||
void print(const QString &text, const QString &type = CONTENT_TYPE_HTML);
|
||||
void print(const QByteArray &data, const QString &type = CONTENT_TYPE_HTML);
|
||||
void clear();
|
||||
|
||||
Reference in New Issue
Block a user