qt5base-lts/tests/auto/network/access
Timur Pocheptsov e4c1feae5c Implement 'preconnect-https' and 'preconnect-http' for H2
QNetworkAccessManager::connectToHostEncrypted()/connectToHost()
creates 'fake' requests with pseudo-schemes 'preconnect-https'/
'preconnect-http'. QHttp2ProtocolHandler should handle this
requests in a special way - reporting them immediately as
finished (so that QNAM emits finished as it does in case of
HTTP/1.1) and not trying to send anything.
We also have to properly cache the connection - 'https' or
'http' scheme is too generic - it allows (unfortunately)
mixing H2/HTTP/1.1 in a single connection in case an attribute
was missing on a request, which is wrong.
h2c is more complicated, since it needs a real request
to negotiate the protocol switch to H2, with the current
QNetworkHttpConnection(Channel)'s design it's not possible
without large changes (aka regressions and new bugs introduced).

Auto-test extended.

Fixes: QTBUG-77082
Change-Id: I03467673a620c89784c2d36521020dc9d08aced7
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-07-24 16:03:02 +02:00
..
hpack Hpack - fix the static lookup 2019-03-04 16:18:14 +00:00
hsts Auto-tests: remove unneeded 'gui' from QT variable 2018-04-18 14:22:26 +00:00
http2 Implement 'preconnect-https' and 'preconnect-http' for H2 2019-07-24 16:03:02 +02:00
qabstractnetworkcache Network cache: Stop treating no-cache like no-store 2019-03-22 13:25:54 +00:00
qftp Do not use the resolver for the local hostname 2019-06-11 11:28:17 +02:00
qhttpnetworkconnection Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qhttpnetworkreply Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qnetworkaccessmanager QNetworkReply: fix isFinished() for disabled replies 2018-03-17 08:38:29 +00:00
qnetworkcachemetadata Updated license headers 2016-01-21 18:55:18 +00:00
qnetworkcookie Add qtest_network.h 2016-09-29 21:46:19 +00:00
qnetworkcookiejar Stop rejecting cookies which have a domain that matches a TLD 2018-04-30 11:18:43 +00:00
qnetworkdiskcache Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qnetworkreply SSL: Update an about-to-expire certificate 2019-06-24 15:18:47 +02:00
qnetworkrequest Merge remote-tracking branch 'origin/5.11' into dev 2018-05-24 16:29:14 +02:00
spdy Updated license headers 2016-01-21 18:55:18 +00:00
access.pro Add HTTP strict tranport security support to QNAM 2017-01-20 08:41:50 +00:00