Added the methods getLastRequest and getLastResponse to the client