private/RequestHandlerPrivate.cpp
/** ************************************************************************************************
    * @brief        Function called when a reply to any POST or PUT request is received.
    *
    * @details      The response is ignored, we just process any error and delete the reply.
    ***************************************************************************************************/
@brief        Function called when a reply to any POST or PUT request is received.
@details      The response is ignored, we just process any error and delete the reply.
@brief Function called when a reply to any POST or PUT request is received . @details The response is ignored we just process any error and delete the reply .
void RequestHandlerPrivate::onPutPostReplyReceived()
    {
        if (QNetworkReply *reply = qobject_cast<QNetworkReply*>(QObject::sender()))
        {
            auto iterator = m_postPutReplyContexts.find(reply);
            if (reply->error() != QNetworkReply::NoError)
            {
                auto context = ErrorContext::Context_Unknown;
                if (iterator != m_postPutReplyContexts.end())
                {
                    context = iterator.value();
                }
                handleRegularError(m_postPutReplyContexts.value(reply, context), reply->readAll());
            }
            reply->deleteLater();
            m_postPutReplyContexts.erase(iterator);
        }
    }
void RequestHandlerPrivate :: onPutPostReplyReceived ( ) { if ( QNetworkReply * reply = qobject_cast < QNetworkReply * > ( QObject :: sender ( ) ) ) { auto iterator = m_postPutReplyContexts . find ( reply ) ; if ( reply -> error ( ) != QNetworkReply :: NoError ) { auto context = ErrorContext :: Context_Unknown ; if ( iterator != m_postPutReplyContexts . end ( ) ) { context = iterator . value ( ) ; } handleRegularError ( m_postPutReplyContexts . value ( reply , context ) , reply -> readAll ( ) ) ; } reply -> deleteLater ( ) ; m_postPutReplyContexts . erase ( iterator ) ; } }
@brief        Function called when a reply to any POST or PUT request is received.
@brief Function called when a reply to any POST or PUT request is received .