moved HttpClient to utils package
replaced parameter 'method' with enumeration type