이 페이지에서

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

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)

seed 를 계산의 시드로 사용하여 key 의 해시 값을 반환합니다.

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