(Taken from Concept 3 below)
To faciliate network request handling, a Request class shall be added. The MNENetProtocolHandler interface shall be removed and Request class instances shall interact directly with the NetworkHandler (former MNENetworkHandler). The latter shall be refactorised.
Implement Request::send: Pass the (raw) data to the network handler.See #13 Implement thread support in NetworkHandler to start a new thread for each request before sending it. Check for the "aborted" flag of the Request before sending data to it. End a thread when the request has been aborted or no more data can be read.See #15
Outdated original text:
To faciliate network request handling, a request class and response handling interfaces shall be added. The MNENetProtocolHandler interface shall be refactorised/extended to use these classes/interfaces when the getResource method is called. The MNENetProtocolHeader class can be refactorised.