Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
When is http header completely downloaded?
brainchild last edited by
QNetworkReply offers methods to query HTTP headers. On closer inspection of the documentation, it appears that even though an instance is available, header information may be incomplete. This is the reason that the metaDataChanged() signal is provided.. However, in a normal use case, one would want to process metadata once the header is information is complete, rather than processing it each time it changes. Unfortunately, there is no signal indicating that the header has been completely transmitted. Is there a simple way to process the header exactly once, at the time when header transmission is complete? I suppose this can be done in the first readyRead() signal, but I hopeful there is a more elegant solution.