cutelyst  4.5.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, QByteArrayView contentType, int bufferSize=4096)
 Parser for multipart/formdata. More...
 

Detailed Description

Definition at line 12 of file multipartformdataparser.h.

Member Function Documentation

◆ parse()

Uploads MultiPartFormDataParser::parse ( QIODevice body,
QByteArrayView  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(), QByteArrayView::at(), QByteArrayView::indexOf(), QByteArray::isEmpty(), QIODevice::isSequential(), QByteArrayView::length(), QByteArray::prepend(), and QByteArray::reserve().