cutelyst 3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst::MultiPartFormDataParser Class Reference

Static Public Member Functions

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

Detailed Description

Definition at line 13 of file multipartformdataparser.h.

Member Function Documentation

◆ parse()

Uploads MultiPartFormDataParser::parse ( QIODevice * body,
QStringView 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 11 of file multipartformdataparser.cpp.

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