コード例 #1
0
        public XNet(string url, XNetMethod method)
        {
            setDefault();

            u = url;
            m = method;
        }
コード例 #2
0
        public XNetThread(string url, XNetMethod method, WebHeaderCollection header)
        {
            setDefault(url);

            this.Method = method;
            _heads      = (header != null ? header : new WebHeaderCollection());
        }
コード例 #3
0
        public XNet(string url, XNetMethod method, XNetMode mode)
        {
            setDefault();

            u = url;
            o = mode;
            m = method;
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public XNetThread(string url, XNetMethod method)
        {
            setDefault(url);

            this.Method = method;
        }
コード例 #6
0
 private void setDefault()
 {
     m = XNetMethod.GET;
     h = new WebHeaderCollection();
     o = XNetMode.Asynchronous;
 }