public UrlSpec ParseUrl(HttpListenerRequest req) { this.OrgUri = req.Url; this.Request = req; this.UrlStatus = new UrlSpec(); this.ParsePath(); this.ParseQuery(); return(this.UrlStatus); }
public Request(HttpListenerRequest req, string MountUrl) { this.Context = req; this.Method = req.HttpMethod; UrlParser urlParser = new UrlParser(MountUrl); UrlSpec urlSpec = urlParser.ParseUrl(this.Context); this.RawUrl = urlSpec.RawUrl; this.OriginalUrl = urlSpec.OriginalUrl; this.Query = urlSpec.Query; this.ReadInputStream(); }