Example #1
0
 public static HttpSend Builder(HttpConfig config)
 {
     if (_httpsend == null && config != null)
     {
         _httpsend = new HttpSend();
         app       = config;
     }
     return(_httpsend);
 }
Example #2
0
 public HttpContent Put(Uri uri, HttpContent body)
 {
     return(HttpSend.Builder(app).SendRequest(HttpMethod.Put, uri, body));
 }
Example #3
0
 public HttpContent Post(string uri, HttpContent body)
 {
     return(HttpSend.Builder(app).SendRequest(HttpMethod.Post, new UriBuilder(uri).Uri, body));
 }
Example #4
0
 public HttpContent Post(Uri uri)
 {
     return(HttpSend.Builder(app).SendRequest(HttpMethod.Post, uri));
 }
Example #5
0
 public HttpContent Get(string uri)
 {
     return(HttpSend.Builder(app).SendRequest(HttpMethod.Get, new UriBuilder(uri).Uri));
 }
Example #6
0
 public HttpContent Delete(Uri uri, HttpContent body)
 {
     return(HttpSend.Builder(app).SendRequest(HttpMethod.Delete, uri, body));
 }