HTTP not working with android api 22

Hello devs,

When I build app with android api 22, then http is not working. But when I did same with api 19 then it works.
I have read from somewhere that HttpClient was deprecated in API Level 22 and removed in API Level 23.

How to use HttpClient with API level 22 ?

Well, it started working after using whitelist plugin.