Beispiel #1
0
		public WorkerRequest (Responder responder, ApplicationHost appHost) : base (appHost)
		{
			this.responder = responder;
			input_data = responder.InputData;
			try {
				Paths.GetPathsFromUri (appHost, GetHttpVerbName (), GetFilePath (), out file_path, out path_info);
			} catch {
				path_info = null;
				file_path = null;
			}
		}
		public void ProcessRequest (Responder responder)
		{
			WorkerRequest worker = new WorkerRequest (responder,
				this);
			
			string path = responder.Path;
			if (path [path.Length - 1] != '/' && Directory.Exists (
				worker.MapPath (path))) {
				Redirect (worker, path + '/');
				return;
			}
			
			ProcessRequest (worker);
		}
Beispiel #3
0
		public void ProcessRequest (Responder responder)
		{
			var worker = new WorkerRequest (responder,
				this);
			
			string path = responder.Path;
			if (!String.IsNullOrEmpty(path) && path [path.Length - 1] != '/' 
				&& VirtualDirectoryExists (path, worker)) {
				Redirect (worker, path + '/');
				return;
			}
			
			ProcessRequest (worker);
		}
Beispiel #4
0
        public void ProcessRequest(Responder responder)
        {
            var worker = new WorkerRequest(responder,
                                           this);

            string path = responder.Path;

            if (!String.IsNullOrEmpty(path) && path [path.Length - 1] != '/' &&
                VirtualDirectoryExists(path, worker))
            {
                Redirect(worker, path + '/');
                return;
            }

            ProcessRequest(worker);
        }
        public void ProcessRequest(Responder responder)
        {
            WorkerRequest worker = new WorkerRequest(responder,
                                                     this);

            string path = responder.Path;

            if (path [path.Length - 1] != '/' && Directory.Exists(
                    worker.MapPath(path)))
            {
                Redirect(worker, path + '/');
                return;
            }

            ProcessRequest(worker);
        }
Beispiel #6
0
        public void ProcessRequest(Responder responder)
        {
            WorkerRequest worker = new WorkerRequest(responder,
                                                     this);

            string path = responder.Path;
            int    len  = path != null ? path.Length : 0;

            if (len > 0 && path [len - 1] != '/' && VirtualDirectoryExists(path, worker))
            {
                Redirect(worker, path + '/');
                return;
            }

            ProcessRequest(worker);
        }
Beispiel #7
0
 public WorkerRequest(Responder responder, ApplicationHost appHost)
     : base(appHost)
 {
     this.responder = responder;
     input_data = responder.InputData;
 }
Beispiel #8
0
 public WorkerRequest(Responder responder, ApplicationHost appHost) : base(appHost)
 {
     this.responder = responder;
     input_data     = responder.InputData;
 }
Beispiel #9
0
        public void ProcessRequest(Responder responder)
        {
            WorkerRequest worker = new WorkerRequest (responder,
                this);

            string path = responder.Path;
            int len = path != null ? path.Length : 0;
            if (len > 0 && path [len - 1] != '/' && VirtualDirectoryExists (path, worker)) {
                Redirect (worker, path + '/');
                return;
            }

            ProcessRequest (worker);
        }