Beispiel #1
0
        private static Task <HttpResponseMessage> RequestHelper(HttpRequest request)
        {
            //create http request
            var msg = PrepareRequest(request);

            return(SharedClient.SendAsync(msg));
        }
Beispiel #2
0
        private static Task <HttpResponseMessage> RequestStreamHelper(HttpRequest request)
        {
            //create http request
            var msg = PrepareRequest(request);

            return(SharedClient.SendAsync(msg, HttpCompletionOption.ResponseHeadersRead));
        }