Auf dieser Seite

QHttp1Configuration Class

Die Klasse „QHttp1Configuration“ steuert die Parameter und Einstellungen für HTTP/1. Mehr...

Header: #include <QHttp1Configuration>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network
Seit: Qt 6.5

Hinweis: Alle Funktionen dieser Klasse sind reentrant.

Öffentliche Funktionen

QHttp1Configuration()
QHttp1Configuration(const QHttp1Configuration &other)
QHttp1Configuration(QHttp1Configuration &&other)
~QHttp1Configuration()
qsizetype numberOfConnectionsPerHost() const
void setNumberOfConnectionsPerHost(qsizetype number)
void swap(QHttp1Configuration &other)
QHttp1Configuration &operator=(QHttp1Configuration &&other)
QHttp1Configuration &operator=(const QHttp1Configuration &other)
(since 6.5) size_t qHash(const QHttp1Configuration &key, size_t seed = 0)
(since 6.5) bool operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
(since 6.5) bool operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)

Ausführliche Beschreibung

QHttp1Configuration steuert die HTTP/1-Parameter und -Einstellungen, die von „ QNetworkAccessManager “ zum Senden von Anfragen und zur Verarbeitung von Antworten verwendet werden.

Hinweis: Die Konfiguration muss festgelegt werden, bevor die erste Anfrage an einen bestimmten Host gesendet wird (und somit eine HTTP/1-Sitzung hergestellt wird).

Siehe auch QNetworkRequest::setHttp1Configuration(), QNetworkRequest::http1Configuration() und QNetworkAccessManager.

Dokumentation zu den Member-Funktionen

QHttp1Configuration::QHttp1Configuration()

„default“ erstellt ein QHttp1Configuration-Objekt.

QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)

Erstellt eine Kopie dieser `QHttp1Configuration`.

[noexcept] QHttp1Configuration::QHttp1Configuration(QHttp1Configuration &&other)

Erstellt diese `QHttp1Configuration` anhand von ` other`.

Hinweis: Das Objekt, aus dem die Verschiebung erfolgte ( other ), befindet sich in einem teilweise initialisierten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.

[noexcept] QHttp1Configuration::~QHttp1Configuration()

Destruktor.

qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const

Gibt die Anzahl der Verbindungen zurück, die pro Kombination aus http(s) host:Port verwendet werden. Der Standardwert ist sechs (6).

Siehe auch setNumberOfConnectionsPerHost.

void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)

Legt die Anzahl der Verbindungen (Minimum: 1; Maximum: 255) fest, die pro http(s)-Kombination aus Host undPort zu number verwendet werden.

Wenn „ number “ ≤ 0 ist, erfolgt keine Änderung. Wenn „ number “ > 255 ist, wird 255 verwendet.

Siehe auch numberOfConnectionsPerHost.

[noexcept] void QHttp1Configuration::swap(QHttp1Configuration &other)

Ersetzt diese HTTP/1-Konfiguration durch other. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.

[noexcept] QHttp1Configuration &QHttp1Configuration::operator=(QHttp1Configuration &&other)

other wird per Move-Zuweisung auf QHttp1Configuration abgelegt.

Hinweis: Das verschobene Objekt other befindet sich in einem teilweise initialisierten Zustand, in dem die einzigen zulässigen Operationen die Zerstörung und die Zuweisung eines neuen Werts sind.

QHttp1Configuration &QHttp1Configuration::operator=(const QHttp1Configuration &other)

Weist „ other “ diesem „ QHttp1Configuration “ zu.

Verwandte Nichtmitglieder

[noexcept, since 6.5] size_t qHash(const QHttp1Configuration &key, size_t seed = 0)

Gibt den Hash-Wert für key zurück, wobei seed als Startwert für die Berechnung verwendet wird.

Diese Funktion wurde in Qt 6.5 eingeführt.

[noexcept, since 6.5] bool operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)

Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ nicht denselben Satz von HTTP/1-Parametern darstellen.

Diese Funktion wurde in Qt 6.5 eingeführt.

[noexcept, since 6.5] bool operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)

Gibt „ true “ zurück, wenn „ lhs “ und „ rhs “ denselben Satz von HTTP/1-Parametern darstellen.

Diese Funktion wurde in Qt 6.5 eingeführt.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.