blob: d3cc9e439f002b44db5150cd4754fdbc862d79fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qhttpheadershelper_p.h"
#include <QtNetwork/qhttpheaders.h>
QT_BEGIN_NAMESPACE
bool QHttpHeadersHelper::compareStrict(const QHttpHeaders &left, const QHttpHeaders &right)
{
if (left.size() != right.size())
return false;
for (qsizetype i = 0; i < left.size(); ++i) {
if (left.nameAt(i) != right.nameAt(i))
return false;
if (left.valueAt(i) != right.valueAt(i))
return false;
}
return true;
}
QT_END_NAMESPACE
|