Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhttpheadershelper.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
6
7#include <QtNetwork/qhttpheaders.h>
8
10
12{
13 if (left.size() != right.size())
14 return false;
15
16 for (qsizetype i = 0; i < left.size(); ++i) {
17 if (left.nameAt(i) != right.nameAt(i))
18 return false;
19 if (left.valueAt(i) != right.valueAt(i))
20 return false;
21 }
22
23 return true;
24}
25
26QT_END_NAMESPACE
Q_NETWORK_EXPORT bool compareStrict(const QHttpHeaders &left, const QHttpHeaders &right)