public XNet(string url, XNetMethod method) { setDefault(); u = url; m = method; }
public XNetThread(string url, XNetMethod method, WebHeaderCollection header) { setDefault(url); this.Method = method; _heads = (header != null ? header : new WebHeaderCollection()); }
public XNet(string url, XNetMethod method, XNetMode mode) { setDefault(); u = url; o = mode; m = method; }
public XNetThread(string url, XNetMethod method, WebHeaderCollection header, JSON option) { setDefault(url); this.Method = method; _heads = (header != null ? header : new WebHeaderCollection()); _opt = JSON.Default(option, JSONType.Object); }
public XNetThread(string url, XNetMethod method) { setDefault(url); this.Method = method; }
private void setDefault() { m = XNetMethod.GET; h = new WebHeaderCollection(); o = XNetMode.Asynchronous; }