QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Multipart QNetworkReply parser. More...
#include <qgsnetworkreplyparser.h>
Public Types | |
typedef QMap< QByteArray, QByteArray > | RawHeaderMap |
Public Member Functions | |
QgsNetworkReplyParser (QNetworkReply *reply) | |
Constructor. | |
QList< QByteArray > | bodies () const |
Gets bodies. | |
QByteArray | body (int part) const |
Gets part part body. | |
QString | error () const |
Parsing error. | |
QList< RawHeaderMap > | headers () const |
Gets headers. | |
bool | isValid () const |
Indicates if successfully parsed. | |
int | parts () const |
Gets number of parts. | |
QByteArray | rawHeader (int part, const QByteArray &headerName) const |
Gets part header. | |
Static Public Member Functions | |
static bool | isMultipart (QNetworkReply *reply) |
Test if reply is multipart. | |
Multipart QNetworkReply parser.
It seams that Qt does not have currently support for multipart reply and it is not even possible to create QNetworkReply from raw data so we need a class for multipart QNetworkReply parsing.
Definition at line 38 of file qgsnetworkreplyparser.h.
typedef QMap<QByteArray, QByteArray> QgsNetworkReplyParser::RawHeaderMap |
Definition at line 43 of file qgsnetworkreplyparser.h.
QgsNetworkReplyParser::QgsNetworkReplyParser | ( | QNetworkReply * | reply | ) |
|
inline |
Gets bodies.
Definition at line 82 of file qgsnetworkreplyparser.h.
|
inline |
Gets part part body.
part | part index |
Definition at line 79 of file qgsnetworkreplyparser.h.
|
inline |
Parsing error.
Definition at line 85 of file qgsnetworkreplyparser.h.
|
inline |
Gets headers.
Definition at line 72 of file qgsnetworkreplyparser.h.
|
static |
Test if reply is multipart.
true
if reply is multipart Definition at line 140 of file qgsnetworkreplyparser.cpp.
|
inline |
Indicates if successfully parsed.
true
if successfully parsed Definition at line 55 of file qgsnetworkreplyparser.h.
|
inline |
|
inline |
Gets part header.
part | part index |
headerName | header name |
Definition at line 69 of file qgsnetworkreplyparser.h.