public static HttpSend Builder(HttpConfig config) { if (_httpsend == null && config != null) { _httpsend = new HttpSend(); app = config; } return(_httpsend); }
public HttpContent Put(Uri uri, HttpContent body) { return(HttpSend.Builder(app).SendRequest(HttpMethod.Put, uri, body)); }
public HttpContent Post(string uri, HttpContent body) { return(HttpSend.Builder(app).SendRequest(HttpMethod.Post, new UriBuilder(uri).Uri, body)); }
public HttpContent Post(Uri uri) { return(HttpSend.Builder(app).SendRequest(HttpMethod.Post, uri)); }
public HttpContent Get(string uri) { return(HttpSend.Builder(app).SendRequest(HttpMethod.Get, new UriBuilder(uri).Uri)); }
public HttpContent Delete(Uri uri, HttpContent body) { return(HttpSend.Builder(app).SendRequest(HttpMethod.Delete, uri, body)); }