ported libraries to HttpClient