Exemple #1
0
        public void Post(string url, Action<With> fn)
        {
            Request.Method = HttpMethod.HTTP_POST;
            Request.Path = url;

            if (null != fn) {
                With w = new With (Request, Request.PostData);
                fn (w);
            }

            MakeRequest ();
        }
Exemple #2
0
        public void Get(string url, Action<With> fn)
        {
            Request.Method = HttpMethod.HTTP_GET;
            Request.Path = url;

            if (null != fn)
            {
                var w = new With(Request, Request.QueryData);
                fn(w);
            }

            MakeRequest();
        }