Skip to content

PythonQt.QtNetwork.QHttpMultiPart · declarations 001

Back to PythonQt.QtNetwork.QHttpMultiPart

AlternativeType instance-attribute

AlternativeType: Any

ContentType instance-attribute

ContentType: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

FormDataType instance-attribute

FormDataType: Any

MixedType instance-attribute

MixedType: Any

RelatedType instance-attribute

RelatedType: Any

append

append(httpPart: Any) -> None

X.append(httpPart)

Supplemental documentation: Qt 5 reference:

void QHttpMultiPart::append(const QHttpPart \&httpPart)

Appends httpPart to this multipart.

Upstream PySide2 reference signatures (binding differences may apply):

append(self, httpPart: PySide2.QtNetwork.QHttpPart) -> None

Source: https://doc.qt.io/archives/qt-5.15/qhttpmultipart.html#append

boundary

boundary() -> Any

X.boundary() -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

QByteArray QHttpMultiPart::boundary() const

returns the boundary.

See also setBoundary().

Upstream PySide2 reference signatures (binding differences may apply):

boundary(self) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qhttpmultipart.html#boundary

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtNetwork.QHttpMultiPart.destroyed; argument details are not documented.

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtNetwork.QHttpMultiPart.objectNameChanged; argument details are not documented.

setBoundary

setBoundary(boundary: Any) -> None

X.setBoundary(boundary)

Supplemental documentation: Qt 5 reference:

void QHttpMultiPart::setBoundary(const QByteArray \&boundary)

Sets the boundary to boundary.

Usually, you do not need to generate a boundary yourself; upon construction the boundary is initiated with the string "boundary_.oOo._" followed by random characters, and provides enough uniqueness to make sure it does not occur inside the parts itself.

See also boundary().

Upstream PySide2 reference signatures (binding differences may apply):

setBoundary(self, boundary: PySide2.QtCore.QByteArray) -> None

Source: https://doc.qt.io/archives/qt-5.15/qhttpmultipart.html#setBoundary

setContentType

setContentType(contentType: Any) -> None

X.setContentType(contentType)

Supplemental documentation: Qt 5 reference:

void QHttpMultiPart::setContentType(QHttpMultiPart::ContentType contentType)

Sets the content type to contentType. The content type will be used in the HTTP header section when sending the multipart message via QNetworkAccessManager::post(). In case you want to use a multipart subtype not contained in QHttpMultiPart::ContentType, you can add the "Content-Type" header field to the QNetworkRequest by hand, and then use this request together with the multipart message for posting.

See also QHttpMultiPart::ContentType and QNetworkAccessManager::post().

Upstream PySide2 reference signatures (binding differences may apply):

setContentType(self, contentType: PySide2.QtNetwork.QHttpMultiPart.ContentType) -> None

Source: https://doc.qt.io/archives/qt-5.15/qhttpmultipart.html#setContentType