public HTTPRequest SetContentBytes(byte[] content, string contentType = null) { contentHandler = new HTTPRequestContentBytesHandler(content); if (contentType != null) { SetHeader("Content-Type", contentType); } return(this); }
public HTTPRequest SetContentFromPath(string srcPath, string contentType = null) { contentHandler = new HTTPRequestContentUploadHandler(srcPath); if (contentType != null) { SetHeader("Content-Type", contentType); } return(this); }
public HTTPRequest(string url, HTTPHeaderList headers = null) { method = "GET"; SetURL(url); if (headers == null) { headers = new HTTPHeaderList(); } authUser = null; authPassword = null; contentHandler = null; }
public HTTPRequest(string url, HTTPHeaderList headers = null) { method = "GET"; SetURL(url); if (headers == null) { headers = new HTTPHeaderList(); } authUser = null; authPassword = null; contentHandler = null; }
public HTTPRequest SetContentHandler(HTTPRequestContentHandler handler) { contentHandler = handler; return(this); }
public HTTPRequest SetContentBytes(byte[] content, string contentType = null) { contentHandler = new HTTPRequestContentBytesHandler(content); if (contentType != null) { SetHeader("Content-Type", contentType); } return this; }
public HTTPRequest SetContentFromPath(string srcPath, string contentType = null) { contentHandler = new HTTPRequestContentUploadHandler(srcPath); if (contentType != null) { SetHeader("Content-Type", contentType); } return this; }
public HTTPRequest SetContentHandler(HTTPRequestContentHandler handler) { contentHandler = handler; return this; }