private static Task <HttpResponseMessage> RequestHelper(HttpRequest request) { //create http request var msg = PrepareRequest(request); return(SharedClient.SendAsync(msg)); }
private static Task <HttpResponseMessage> RequestStreamHelper(HttpRequest request) { //create http request var msg = PrepareRequest(request); return(SharedClient.SendAsync(msg, HttpCompletionOption.ResponseHeadersRead)); }