I am using a third party HTTP client to make GET, POST calls. I don't want to tie my code to this library. So I've decided to create an interface called HttpClient and an implementation of it called HttpClientImpl.
One of the methods in the interface is:
Response get(String url);
The Response object being returned from the interface is the object from the third party library. So this technically does not decouple my code from the third party library.
What is the best approach to decouple myself? Should I create my own response object that can wrap the response of the third party library?