If you haven't worked with the HTTP protocol before, it boils down to a conversation between a client and a server consisting of requests and responses. For example, we can make a request to www.bbc.co.uk in our favorite web browser, and we will receive a response containing various news items and articles. In the get() method of our NetworkAccessManager wrapper, we reference a QNetworkRequest (our request to a server) and a QNetworkReply (the server's response back to us). While we won’t directly hide QNetworkRequest and QNetworkReply behind their own independent interfaces, we will take the concept of a web request and corresponding response and create an interface and implementation for that interaction. Still in cm-lib/source/networking, create an interface header file i-web-request.h:
#ifndef IWEBREQUEST_H #define IWEBREQUEST_H
#include <QUrl...