Use QHttpHeaders in QHttpServerResponse


Added withHeaders() method to pass headers to the QHttpServerResponse object.
Removed methods using QHttpServerResponder::HeaderList because it will be also replaced by QHttpHeaders.
Added headers() method for convenience.
Updated tests and examples.

Fixes: QTBUG-107749
Change-Id: Ia9ce631a17b1b60e84ffc85e09215ac262407144
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit2c91877b7f47659d750f8ecd892e7bbc3305d0d5
parent9070c6654bb89de817aac4423dc8af7d36aa5907
authorLena Biliaieva <lena.biliaieva@qt.io>
committerLena Biliaieva <lena.biliaieva@qt.io>
commit timeTue, 13 Feb 2024 13:03:08 +0100