示例#1
0
 public UrlSpec ParseUrl(HttpListenerRequest req)
 {
     this.OrgUri    = req.Url;
     this.Request   = req;
     this.UrlStatus = new UrlSpec();
     this.ParsePath();
     this.ParseQuery();
     return(this.UrlStatus);
 }
示例#2
0
        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();
        }