Esempio n. 1
0
        public void Restful(ERestful method, string action, byte[] body)
        {
            HttpWebRequestEntity request = new HttpWebRequestEntity(url + action, method);

            request.SetBody(body).SetContentType("application/octet-stream");
            queue.Enqueue(request);
        }
Esempio n. 2
0
        public void Restful(ERestful method, string action, WWWForm form)
        {
            HttpWebRequestEntity request = new HttpWebRequestEntity(url + action, method);

            request.SetBody(form.data).SetContentType("application/x-www-form-urlencoded");
            queue.Enqueue(request);
        }
Esempio n. 3
0
 /// <summary>
 /// 构建一个请求参数
 /// </summary>
 /// <param name="request">请求</param>
 public HttpRequestEventArgs(HttpWebRequestEntity request)
 {
     WebRequest = request;
 }
Esempio n. 4
0
        public void Restful(ERestful method, string action)
        {
            HttpWebRequestEntity request = new HttpWebRequestEntity(url + action, method);

            queue.Enqueue(request);
        }
Esempio n. 5
0
 public void Restful(ERestful method , string action , byte[] body)
 {
     HttpWebRequestEntity request = new HttpWebRequestEntity(url + action, method);
     request.SetBody(body).SetContentType("application/octet-stream");
     queue.Enqueue(request);
 }
Esempio n. 6
0
 public void Restful(ERestful method, string action , WWWForm form)
 {
     HttpWebRequestEntity request = new HttpWebRequestEntity(url + action, method);
     request.SetBody(form.data).SetContentType("application/x-www-form-urlencoded");
     queue.Enqueue(request);
 }
Esempio n. 7
0
 public void Restful(ERestful method, string action)
 {
     HttpWebRequestEntity request = new HttpWebRequestEntity(url + action , method);
     queue.Enqueue(request);
 }
Esempio n. 8
0
 public HttpRequestEventArgs(HttpWebRequestEntity request)
 {
     WebRequest = request;
 }