QHttp1Configuration Class

Die Klasse QHttp1Configuration steuert HTTP/1-Parameter und Einstellungen. Mehr...

Kopfzeile: #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 in 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)

Detaillierte Beschreibung

QHttp1Configuration steuert HTTP/1-Parameter und Einstellungen, die QNetworkAccessManager zum Senden von Anfragen und Verarbeiten von Antworten verwendet.

Hinweis: Die Konfiguration muss gesetzt werden, bevor die erste Anfrage an einen bestimmten Host gesendet (und damit eine HTTP/1-Sitzung aufgebaut) wurde.

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

Dokumentation der Mitgliedsfunktionen

QHttp1Configuration::QHttp1Configuration()

Standard konstruiert ein QHttp1Configuration-Objekt.

QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)

Kopiert diese QHttp1Configuration.

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

Move-konstruiert diese QHttp1Configuration aus other.

Hinweis: Das "moved-from"-Objekt other befindet sich in einem teilweise gebildeten Zustand, in dem die einzigen gültigen Operationen die Zerstörung und die Zuweisung eines neuen Wertes sind.

[noexcept] QHttp1Configuration::~QHttp1Configuration()

Zerstörer.

qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const

Gibt die Anzahl der verwendeten Verbindungen pro http(s) host:port-Kombination zurück. Der Standardwert ist sechs (6).

Siehe auch setNumberOfConnectionsPerHost.

void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)

Setzt die Anzahl der Verbindungen (Minimum: 1; Maximum: 255), die pro http(s) -Host:Port-Kombination verwendet werden, auf number.

Wenn number ≤ 0 ist, geschieht nichts. Wenn number > 255 ist, wird 255 verwendet.

Siehe auch numberOfConnectionsPerHost.

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

Tauscht diese HTTP/1-Konfiguration mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

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

Verschieben - weist other diesem QHttp1Configuration zu.

Hinweis: Das verschobene Objekt other wird in einen teilweise gebildeten Zustand versetzt, in dem die einzigen gültigen Operationen die Zerstörung und die Zuweisung eines neuen Wertes sind.

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

Kopiert other auf diese QHttp1Configuration.

Verwandte Nicht-Mitglieder

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

Gibt den Hashwert für key zurück, wobei seed als Seed 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.

© 2025 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.