I created an abstract MoneroHttpConnection class that implements the basic methods for sending post requests. I proceeded with the refactoring of the MoneroRpcConnection class (now it extends MoneroHttpConnection) moving the logic strictly linked to http requests. I finally created a MoneroLWSConnecton class that extends the MoneroHttpConnection class and exposes the basic methods for interacting with a Monero Light Wallet Server.
I created an abstract MoneroHttpConnection class that implements the basic methods for sending post requests. I proceeded with the refactoring of the MoneroRpcConnection class (now it extends MoneroHttpConnection) moving the logic strictly linked to http requests. I finally created a MoneroLWSConnecton class that extends the MoneroHttpConnection class and exposes the basic methods for interacting with a Monero Light Wallet Server.