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