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()
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()

デフォルトは QHttp1Configuration オブジェクトを構築します。

QHttp1Configuration::QHttp1Configuration(const QHttp1Configuration &other)

この QHttp1Configuration をコピー構築します。

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

この QHttp1Configuration をother から移動します。

注意: 移動元のオブジェクトother は、部分的に形成された状態に置かれます。この状態では、有効な操作は破棄と新しい値の割り当てのみです。

[noexcept] QHttp1Configuration::~QHttp1Configuration()

破壊者。

qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const

http(s)host:port の組み合わせごとに使用される接続数を返します。デフォルトは 6 です。

setNumberOfConnectionsPerHostも参照

void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)

http(s)のホスト:ポートの組み合わせごとに使用される接続数 (最小: 1; 最大: 255) をnumber に設定する。

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)

lhsrhs が同じ HTTP/1 パラメータセットを表していない場合、true を返します。

この関数は Qt 6.5 で導入されました。

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

lhsrhs が同じ HTTP/1 パラメータセットを表している場合、true を返します。

この関数は Qt 6.5 で導入されました。

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