qt6-bb10/tests/auto/network
Marc Mutz 7897ec88f4 QHttpHeaders: add value(name, fall-back)
The vast majority of header fields appear only once, but there was no
efficient way to get that value: values() returns as a
QList<QByteArray> (allocating) while combinedValue() returns a
QByteArray constructed from values().join() (also allocating).

It follows that the QHttpHeaders API is incomplete (lacks an efficient
basis of operations in EoP terms).

Add a value() function that returns either the value or a
user-provided fall-back as a QByteArrayView. Unlike values() and
combinedValue(), this function can be noexcept, greatly improving
codegen for callers.

Found in API review.

Pick-to: 6.7
Task-number: QTBUG-107042
Change-Id: I2da20815fd46fdd7f150c224f41eee53abed313e
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-01-09 18:54:46 +01:00
..
access QHttpHeaders: add value(name, fall-back) 2024-01-09 18:54:46 +01:00
kernel tst_QDnsLookup: fix typo in CMakeListst.txt 2023-09-04 14:17:12 -07:00
selftest Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
socket Tests: remove blacklisted CIs no longer available 2023-12-06 22:07:44 +01:00
ssl Fix the qopenssl_symbols.h copy in the autotest 2023-12-13 20:54:00 +00:00
CMakeLists.txt Rid of 'special case' markers 2023-04-13 18:30:58 +02:00