Ejemplo n.º 1
0
 public HttpRequest() : base()
 {
     Header        = new HttpHeader();
     Parameters    = new HttpParameters();
     QueryString   = new HttpQueryString();
     Cookies       = new HttpCookies();
     File          = new HttpFile();
     ContentStream = new MemoryStream();
 }
Ejemplo n.º 2
0
        public static IHttpCookies ParseCookie(string cookieString)
        {
            IHttpCookies result = new HttpCookies();

            if (!string.IsNullOrEmpty(cookieString))
            {
                string[] values = cookieString.Split(';');
                for (int i = 0, icount = values.Length; i < icount; i++)
                {
                    parseCookieStringValue(result, values[i]);
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
 public HttpRequestResponse()
 {
     Parameters = new HttpParameters();
     Cookies    = new HttpCookies();
 }