コード例 #1
0
 public void HttpInvoke(SupportedHttpMethods httpMethod, string url, string content)
 {
     using (var httpClass = new HttpClass(httpMethod, url, content))
        {
     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;
        }