HttpClient in own method