Apache HTTP. Maven Dependency
Our goal is to implement Http interface that can be applicable for any purposes with minimum tuning. This interface should look like this
GeneralResponse consists of the statusLine (response code and phrase) and the content itself from the response.
Usually it’s json, atleast for me.
Implementation of Http Interface
Here is the implementation of sendGet and sendPost methods of the Http interface.
SendDelete and sendPut look exactly like sendGet or sendPost just use HttpDelete and HttpPut.
Need more? - Just google it
You may also find these posts interesting: