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)

Move는 other 에서 이 QHttp1Configuration을 구성합니다.

참고: 이동한 개체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 파괴와 새 값 할당뿐입니다.

[noexcept] QHttp1Configuration::~QHttp1Configuration()

파괴자.

qsizetype QHttp1Configuration::numberOfConnectionsPerHost() const

host:포트 조합당 사용된 연결 수를 반환합니다. 기본값은 6입니다.

setNumberOfConnectionsPerHost도 참조하세요 .

void QHttp1Configuration::setNumberOfConnectionsPerHost(qsizetype number)

http(들) 호스트:포트 조합당 사용되는 연결 수(최소: 1, 최대: 255)를 number 로 설정합니다.

number 이 ≤ 0이면 아무 작업도 수행하지 않습니다. number 이 255를 초과하면 255가 사용됩니다.

numberOfConnectionsPerHost도 참조하세요 .

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

이 HTTP/1 구성을 other 로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.

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

이동-이 QHttp1Configurationother 을 할당합니다.

참고: 이동한 개체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 파괴와 새 값 할당뿐입니다.

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

otherQHttp1Configuration 으로 복사-할당합니다.

관련 비회원

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

seed 을 사용하여 key 의 해시값을 반환합니다.

이 함수는 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.