qt6-bb10/tests/auto/network/access
Juha Vuolle d8f6425fef Add a QHttpHeaders convenience method for unique header name setting
The function replaces one of the found entries with the new value,
and removes any other entries. If no entries are found, a new entry
will be appended. The replacement search is done for performance
reasons; it's cheaper to replace an existing value.

All in all the function is a more convenient and performant
alternative for this sequence (which proved to be common while
porting QtNetwork internals to QHttpHeaders):
header.removeAll(<headername>);
header.append(<headername>, <value>);

[ChangeLog][QtNetwork][QHttpHeaders] Added replaceOrAppend()
convenience method, which either replaces previous entries with
a single entry, or appends a new one if no entries existed

Fixes: QTBUG-122175
Change-Id: I03957645d7e916a732ac7b8d3ae724bb6b16af87
Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-03-07 23:38:09 +02:00
..
hpack Change license for tests files 2024-02-04 09:56:42 +01:00
hsts Change license for tests files 2024-02-04 09:56:42 +01:00
http2 Handle informational HTTP replies (1xx) for HTTP/2 2024-03-01 23:57:13 +01:00
qabstractnetworkcache Change license for tests files 2024-02-04 09:56:42 +01:00
qdecompresshelper Change license for tests files 2024-02-04 09:56:42 +01:00
qhttp2connection Implement ping reply in QHttp2Connection and add test 2024-03-04 20:14:36 +01:00
qhttpheaderparser Change license for tests files 2024-02-04 09:56:42 +01:00
qhttpheaders Add a QHttpHeaders convenience method for unique header name setting 2024-03-07 23:38:09 +02:00
qhttpnetworkconnection Change license for tests files 2024-02-04 09:56:42 +01:00
qhttpnetworkreply Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkaccessmanager Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkcachemetadata Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkcookie Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkcookiejar Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkdiskcache Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkreply tst_QNetworkReply: Try to stabilize qtbug68821proxyError 2024-02-15 16:27:19 +01:00
qnetworkrequest Change license for tests files 2024-02-04 09:56:42 +01:00
qnetworkrequestfactory Add QNetworkRequest attribute support to QNetworkRequestFactory 2024-02-28 08:13:55 +02:00
qrestaccessmanager Remove HTTP 1XX status test from tst_qrestaccessmanager 2024-02-06 19:10:45 +02:00
CMakeLists.txt Privately introduce QHttp2Connection 2024-01-17 16:05:25 +01:00