Add http_socket which implements SocketPolicy with testcases.