![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QFormDataBuilder class is a convenience class to simplify the construction of QHttpMultiPart objects. More...
#include <qformdatabuilder.h>
Public Types | |
| enum class | Option { Default = 0x00 , OmitRfc8187EncodedFilename = 0x01 , UseRfc7578PercentEncodedFilename = 0x02 , PreferLatin1EncodedFilename = 0x04 , StrictRfc7578 = OmitRfc8187EncodedFilename | UseRfc7578PercentEncodedFilename } |
Public Member Functions | |
| Q_NETWORK_EXPORT | QFormDataBuilder () |
| QFormDataBuilder (QFormDataBuilder &&other) noexcept | |
| void | swap (QFormDataBuilder &other) noexcept |
| Q_NETWORK_EXPORT | ~QFormDataBuilder () |
| Q_NETWORK_EXPORT QFormDataPartBuilder | part (QAnyStringView name) |
| Q_NETWORK_EXPORT std::unique_ptr< QHttpMultiPart > | buildMultiPart (Options options={}) |
The QFormDataBuilder class is a convenience class to simplify the construction of QHttpMultiPart objects.
\inmodule QtNetwork
The QFormDataBuilder class can be used to build a QHttpMultiPart object with the content type set to be FormDataType by default.
The snippet below demonstrates how to build a multipart message with QFormDataBuilder:
Definition at line 74 of file qformdatabuilder.h.
|
strong |
| Enumerator | |
|---|---|
| Default | |
| OmitRfc8187EncodedFilename | |
| UseRfc7578PercentEncodedFilename | |
| PreferLatin1EncodedFilename | |
| StrictRfc7578 | |
Definition at line 77 of file qformdatabuilder.h.
| Q_NETWORK_EXPORT QFormDataBuilder::QFormDataBuilder | ( | ) |
|
inlinenoexcept |
Definition at line 89 of file qformdatabuilder.h.
| Q_NETWORK_EXPORT QFormDataBuilder::~QFormDataBuilder | ( | ) |
| Q_NETWORK_EXPORT std::unique_ptr< QHttpMultiPart > QFormDataBuilder::buildMultiPart | ( | Options | options = {} | ) |
| Q_NETWORK_EXPORT QFormDataPartBuilder QFormDataBuilder::part | ( | QAnyStringView | name | ) |
|
inlinenoexcept |
Definition at line 92 of file qformdatabuilder.h.