Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qhttpheaderparser_p.h>
Definition at line 47 of file qhttpheaderparser_p.h.
QT_BEGIN_NAMESPACE QHttpHeaderParser::QHttpHeaderParser | ( | ) |
Definition at line 10 of file qhttpheaderparser.cpp.
void QHttpHeaderParser::appendHeaderField | ( | const QByteArray & | name, |
const QByteArray & | data ) |
Definition at line 171 of file qhttpheaderparser.cpp.
References QHttpHeaders::append().
Referenced by QHttpNetworkReplyPrivate::appendHeaderField().
void QHttpHeaderParser::clear | ( | ) |
Definition at line 17 of file qhttpheaderparser.cpp.
References QString::clear(), and QHttpHeaders::clear().
Referenced by QHttpNetworkReplyPrivate::clearHttpLayerInformation().
void QHttpHeaderParser::clearHeaders | ( | ) |
Definition at line 176 of file qhttpheaderparser.cpp.
References QHttpHeaders::clear().
Referenced by QHttpNetworkHeaderPrivate::clearHeaders().
QByteArray QHttpHeaderParser::combinedHeaderValue | ( | QByteArrayView | name, |
const QByteArray & | defaultValue = QByteArray() ) const |
Definition at line 142 of file qhttpheaderparser.cpp.
References headerFieldValues().
QByteArray QHttpHeaderParser::firstHeaderField | ( | QByteArrayView | name, |
const QByteArray & | defaultValue = QByteArray() ) const |
Definition at line 136 of file qhttpheaderparser.cpp.
References QHttpHeaders::value().
Referenced by QHttpNetworkHeaderPrivate::contentLength(), and QHttpNetworkReplyPrivate::removeAutoDecompressHeader().
int QHttpHeaderParser::getMajorVersion | ( | ) | const |
Definition at line 191 of file qhttpheaderparser.cpp.
Referenced by QHttpNetworkReplyPrivate::readHeader().
int QHttpHeaderParser::getMinorVersion | ( | ) | const |
Definition at line 201 of file qhttpheaderparser.cpp.
Referenced by QHttpNetworkReplyPrivate::readHeader().
QString QHttpHeaderParser::getReasonPhrase | ( | ) | const |
Definition at line 211 of file qhttpheaderparser.cpp.
int QHttpHeaderParser::getStatusCode | ( | ) | const |
Definition at line 181 of file qhttpheaderparser.cpp.
Referenced by QHttpNetworkReplyPrivate::expectContent(), QHttpNetworkReplyPrivate::isRedirecting(), and QHttpNetworkReplyPrivate::shouldEmitSignals().
QList< QByteArray > QHttpHeaderParser::headerFieldValues | ( | QByteArrayView | name | ) | const |
Definition at line 150 of file qhttpheaderparser.cpp.
References QHttpHeaders::values().
Referenced by combinedHeaderValue(), and QHttpNetworkHeaderPrivate::headerFieldValues().
const QHttpHeaders & QHttpHeaderParser::headers | ( | ) | const |
Definition at line 131 of file qhttpheaderparser.cpp.
Referenced by QHttpNetworkRequest::header(), and QHttpNetworkHeaderPrivate::headers().
|
inline |
Definition at line 84 of file qhttpheaderparser_p.h.
|
inline |
Definition at line 78 of file qhttpheaderparser_p.h.
|
inline |
Definition at line 81 of file qhttpheaderparser_p.h.
bool QHttpHeaderParser::parseHeaders | ( | QByteArrayView | headers | ) |
Definition at line 37 of file qhttpheaderparser.cpp.
References QString::endsWith(), fieldNameCheck(), header(), QHttpHeaders::isEmpty(), line, Q_ASSERT, QString::size(), and QString::trimmed().
Referenced by QHttpNetworkReplyPrivate::parseHeader().
bool QHttpHeaderParser::parseStatus | ( | QByteArrayView | status | ) |
Definition at line 92 of file qhttpheaderparser.cpp.
References QByteArrayView::at(), QString::fromLatin1(), i, QByteArrayView::indexOf(), j, ok, QByteArrayView::size(), QByteArrayView::sliced(), QByteArrayView::startsWith(), and QString::toInt().
Referenced by QHttpNetworkReplyPrivate::parseStatus().
void QHttpHeaderParser::prependHeaderField | ( | const QByteArray & | name, |
const QByteArray & | data ) |
Definition at line 166 of file qhttpheaderparser.cpp.
References QHttpHeaders::insert().
Referenced by QHttpNetworkHeaderPrivate::prependHeaderField().
void QHttpHeaderParser::removeHeaderField | ( | QByteArrayView | name | ) |
Definition at line 155 of file qhttpheaderparser.cpp.
References QHttpHeaders::removeAll().
Referenced by QHttpNetworkReplyPrivate::removeAutoDecompressHeader(), and setHeaderField().
void QHttpHeaderParser::setHeaderField | ( | const QByteArray & | name, |
const QByteArray & | data ) |
Definition at line 160 of file qhttpheaderparser.cpp.
References QHttpHeaders::append(), and removeHeaderField().
Referenced by QHttpNetworkHeaderPrivate::setHeaderField().
void QHttpHeaderParser::setMajorVersion | ( | int | version | ) |
Definition at line 196 of file qhttpheaderparser.cpp.
Definition at line 83 of file qhttpheaderparser_p.h.
Definition at line 77 of file qhttpheaderparser_p.h.
Definition at line 80 of file qhttpheaderparser_p.h.
void QHttpHeaderParser::setMinorVersion | ( | int | version | ) |
Definition at line 206 of file qhttpheaderparser.cpp.
Definition at line 216 of file qhttpheaderparser.cpp.
void QHttpHeaderParser::setStatusCode | ( | int | code | ) |
Definition at line 186 of file qhttpheaderparser.cpp.