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 (); }
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(); }