예제 #1
0
 public void HttpInvoke(SupportedHttpMethods httpMethod, string url)
 {
     using (var httpClass = new HttpClass(httpMethod, url))
     {
         httpClass.Invoke();
     }
 }
예제 #2
0
        public string GetHttpContent(string url)
        {
            string content;

            using (var httpClass = new HttpClass(SupportedHttpMethods.GET, url))
            {
                httpClass.Invoke();
                content = httpClass.GetResponseContent();
            }
            return(content);
        }
예제 #3
0
        public HttpResponseMessage GetHttpResponseMessage(SupportedHttpMethods httpMethod, string url)
        {
            HttpResponseMessage _response;

            using (var httpClass = new HttpClass(httpMethod, url))
            {
                httpClass.Invoke();
                _response = httpClass.GetHttpResponseMessage();
            }

            return(_response);
        }