add proper tcp, udp instance creation in HttpClient