Cutelyst  2.14.2
Static Public Member Functions | List of all members
Cutelyst::MultiPartFormDataParser Class Reference

Static Public Member Functions

static Uploads parse (QIODevice *body, const QString &contentType, int bufferSize=4096)
 Parser for multipart/formdata. More...
 

Detailed Description

Definition at line 26 of file multipartformdataparser.h.

Member Function Documentation

Uploads MultiPartFormDataParser::parse ( QIODevice body,
const QString contentType,
int  bufferSize = 4096 
)
static
Parameters
body
contentTypecan be the whole HTTP Content-Type header or just it's value
bufferSizeis the internal buffer size used to parse

Definition at line 24 of file multipartformdataparser.cpp.

References QByteArray::append(), QString::at(), QString::indexOf(), QByteArray::isEmpty(), QIODevice::isSequential(), QString::length(), QByteArray::prepend(), QByteArray::reserve(), and QChar::toLatin1().