public static HttpWebResponse GetResponse( string method, string url, string enctype = MimeMap.APPLICATION_X_WWW_FORM_URLENCODED, Dictionary <string, object> updata = null, Dictionary <string, object> upfiles = null, HttpStateContainer config = null) { return(new HttpAccess(config).GetLastResponse(method, enctype, url, updata, upfiles)); }
public static string Download(Stream receiver, string method, string url, string enctype = MimeMap.APPLICATION_X_WWW_FORM_URLENCODED, Dictionary <string, object> updata = null, Dictionary <string, object> upfiles = null, int bufferSize = 4096, HttpStateContainer config = null) { return(new HttpAccess(config).Download(receiver, method, enctype, url, updata, upfiles, bufferSize)); }
public HttpAccess(HttpStateContainer config) { if (config != null) { StateContainer = config; } else { StateContainer = new HttpStateContainer(); } }
public static string Delete(string url, Dictionary <string, object> updata = null, HttpStateContainer config = null) => new HttpAccess(config).Delete(url, updata);
public static JToken DeleteFor(string url, object updata, HttpStateContainer config = null) => new HttpAccess(config).DeleteFor(url, updata);
public static TRet DeleteFor <TRet>(string url, object updata, HttpStateContainer config = null) => new HttpAccess(config).DeleteFor <TRet>(url, updata);
public static string DeleteDownload(Stream receiver, string url, object updata, int bufferSize = HttpAccess.RECOMMENDED_BUFFER_SIZE, HttpStateContainer config = null) => new HttpAccess(config).DeleteDownload(receiver, url, updata, bufferSize);
public static HttpWebResponse PostResponse(string url, Dictionary <string, object> updata = null, HttpStateContainer config = null) => new HttpAccess(config).PostResponse(url, updata);
public static JToken PostFor(string url, Dictionary <string, object> updata = null, HttpStateContainer config = null) => new HttpAccess(config).PostFor(url, updata);
public static string PostDownload(Stream receiver, string url, Dictionary <string, object> updata = null, int bufferSize = HttpAccess.RECOMMENDED_BUFFER_SIZE, HttpStateContainer config = null) => new HttpAccess(config).PostDownload(receiver, url, updata, bufferSize);
public static string Post(string url, object updata, HttpStateContainer config = null) => new HttpAccess(config).Post(url, updata);
public static string PutFiles(string url, Dictionary <string, object> updata = null, Dictionary <string, object> upfiles = null, HttpStateContainer config = null) => new HttpAccess(config).PutFiles(url, updata, upfiles);
public static TRet PutJsonFor <TRet>(string url, Dictionary <string, object> updata = null, HttpStateContainer config = null) => new HttpAccess(config).PutJsonFor <TRet>(url, updata);
public static TRet PostFilesFor <TRet>(string url, object updata, Dictionary <string, object> upfiles = null, HttpStateContainer config = null) => new HttpAccess(config).PostFilesFor <TRet>(url, updata, upfiles);