Exemplo n.º 1
0
 public void HttpInvoke(SupportedHttpMethods httpMethod, string url, string content)
 {
     using (var httpClass = new HttpClass(httpMethod, url, content))
        {
     httpClass.Invoke();
        }
 }
Exemplo n.º 2
0
 public string GetHttpContent(string url)
 {
     string content;
        using (var httpClass = new HttpClass(SupportedHttpMethods.GET, url))
        {
     httpClass.Invoke();
     content = httpClass.GetResponseContent();
        }
        return content;
 }
Exemplo n.º 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;
        }