Add a note to QFormDataPartBuilder::setBodyDevice
If the body is sequential, QNAM::post should be called after body has emitted finished. As this is already mentioned in the documentation of QHttpPart::setBodyDevice it probably won't hurt to mention it here as well. Task-number: QTBUG-125985 Change-Id: Iaa29c45b8da41a9af893523ff140afa9a0945f95 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 704362f3dd06798c8c33ce48aa6c71fa3ac4624f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1ecd3b8858
commit
d9fc08c719
@ -167,6 +167,10 @@ QFormDataPartBuilder &QFormDataPartBuilder::setBody(QByteArrayView data,
|
||||
ownership of \a body, i.e. the device must be closed and destroyed if
|
||||
necessary.
|
||||
|
||||
\note If \a body is sequential (e.g. sockets, but not files),
|
||||
QNetworkAccessManager::post() should be called after \a body has emitted
|
||||
finished().
|
||||
|
||||
\sa setBody(), QHttpPart::setBodyDevice()
|
||||
*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user