| 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 | |
| 4 | #include "qhttpheadershelper_p.h" |
| 5 | |
| 6 | #include <QtNetwork/qhttpheaders.h> |
| 7 | |
| 8 | QT_BEGIN_NAMESPACE |
| 9 | |
| 10 | bool QHttpHeadersHelper::compareStrict(const QHttpHeaders &left, const QHttpHeaders &right) |
| 11 | { |
| 12 | if (left.size() != right.size()) |
| 13 | return false; |
| 14 | |
| 15 | for (qsizetype i = 0; i < left.size(); ++i) { |
| 16 | if (left.nameAt(i) != right.nameAt(i)) |
| 17 | return false; |
| 18 | if (left.valueAt(i) != right.valueAt(i)) |
| 19 | return false; |
| 20 | } |
| 21 | |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | QT_END_NAMESPACE |
| 26 |
