@Rizwan94 said in Interceptor in QT?:
I got to know that in java spring framework etc. We have interceptors which help process the request & response.
In QT, do we have anything similar that can be used.
Qt uses signals and slots: https://doc.qt.io/qt-5/signalsandslots.html
Currently for making REST api calls in my application i am making use of QNAM.
When you call get() or post(), QNAM returns a QNetworkReply object. Connect the QNetworkReply::finished() signal to a slot to process the reply. Remember to delete the QNetworkReply when you have finished processing.