Use Qt::StringLiterals in HttpRequest


Also use u'' to create QChar from char16_t characters.

This patch does not touch QNetworkRequest::setHeader() calls, because
it takes QByteArray and QVariant as its input parameters.
Similarly, do not touch the QUrl::toPercentEncoding().replace() call,
because if operates on a QByteArray, so the arguments are also byte
arrays.

As a drive-by,  make some variables in the modified lines const.

Task-number: QTBUG-137390
Change-Id: I5cb68cbf778d81d296bb6f6c69f6de84bf8f7241
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commite5ed7ad29715ca90b624910cc1a6f439e74e16b6
parentcd6e89fab2c7b037a84aad3504dfdf1a61d0f12c
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 10 Sep 2025 11:53:04 +0200