QHttp1Configuration Class
QHttp1Configuration クラスは、HTTP/1 のパラメータや設定を制御します。詳細...
| ヘッダー: | #include <QHttp1Configuration> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
| 以下のように: | Qt 6.5以降 |
- 継承されたメンバーを含むすべてのメンバーの一覧
- QHttp1Configuration は、ネットワークプログラミング APIおよび暗黙的に共有されるクラスに属します。
注:このクラスのすべての関数は再入可能です。
パブリック関数
| 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) |
詳細な説明
QHttp1Configuration は、QNetworkAccessManager がリクエストの送信やレスポンスの処理に使用する HTTP/1 パラメータおよび設定を制御します。
注: 設定は 、特定のホストに最初のリクエストが送信される前(つまり、HTTP/1 セッションが確立される前)に行う必要があります。
QNetworkRequest::setHttp1Configuration()、QNetworkRequest::http1Configuration()、およびQNetworkAccessManagerも参照してください 。
メンバ関数のドキュメント
QHttp1Configuration::QHttp1Configuration()
default は QHttp1Configuration オブジェクトを生成します。
QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)
この QHttp1Configuration をコピーして生成します。
[noexcept] QHttp1Configuration::QHttp1Configuration(QHttp1Configuration &&other)
other からこの QHttp1Configuration を移動生成します。
注: 移動元のオブジェクトである other は 、部分的に形成された状態になります。この状態では、有効な操作は破棄と新しい値への代入のみです。
[noexcept] QHttp1Configuration::~QHttp1Configuration()
デストラクタ。
qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const
各 http(s)host:portの組み合わせで使用される接続数を返します。デフォルトは 6 です。
setNumberOfConnectionsPerHostも参照してください 。
void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)
number に対して、http(s)のホスト:ポートの組み合わせごとに使用される接続数(最小:1、最大:255)を設定します。
number が0以下の場合、何もしません。number が255より大きい場合、255が使用されます。
numberOfConnectionsPerHostも参照してください 。
[noexcept] void QHttp1Configuration::swap(QHttp1Configuration &other)
このHTTP/1設定をother に置き換えます。この操作は非常に高速で、失敗することはありません。
[noexcept] QHttp1Configuration &QHttp1Configuration::operator=(QHttp1Configuration &&other)
other をこのQHttp1Configuration に移動・代入します。
注: 移動元のオブジェクト other は 、部分的に形成された状態となり、この状態では、破棄と新しい値への代入のみが有効な操作となります。
QHttp1Configuration &QHttp1Configuration::operator=(const QHttp1Configuration &other)
other をこのQHttp1Configuration にコピー代入します。
関連する非会員
[noexcept, since 6.5] size_t qHash(const QHttp1Configuration &key, size_t seed = 0)
`key` のハッシュ値を、`seed ` を計算のシードとして使用して返します。
この関数は Qt 6.5 で導入されました。
[noexcept, since 6.5] bool operator!=(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
lhs とrhs が同じ HTTP/1 パラメータのセットを表していない場合、true を返します。
この関数は Qt 6.5 で導入されました。
[noexcept, since 6.5] bool operator==(const QHttp1Configuration &lhs, const QHttp1Configuration &rhs)
lhs とrhs が同じ HTTP/1 パラメータのセットを表している場合、true を返します。
この関数は Qt 6.5 で導入されました。
© 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.