Пример #1
0
        public void SendFile(int requestId, string filename)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SendFile(filename);
        }
Пример #2
0
 public ModMonoWorkerRequest(object worker,
                             IApplicationHost appHost, string verb, string path,
                             string queryString, string protocol, string localAddress,
                             int serverPort, string remoteAddress, int remotePort,
                             string remoteName, string[] headers, string[] headerValues)
     : this(-1, null, appHost, verb, path, queryString, protocol, localAddress,
            serverPort, remoteAddress, remotePort, remoteName, headers, headerValues)
 {
     this.worker = (ModMonoWorker)worker;
 }
Пример #3
0
        public void SetOutputBuffering(int requestId, bool doBuffer)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SetOutputBuffering(doBuffer);
        }
Пример #4
0
        public void SetResponseHeader(int requestId, string name, string value)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SetResponseHeader(name, value);
        }
Пример #5
0
        public void SetStatusCodeLine(int requestId, int code, string status)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return;
            }
            worker.SetStatusCodeLine(code, status);
        }
Пример #6
0
        public string GetServerVariable(int requestId, string name)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            if (worker == null)
            {
                return(null);
            }

            return(worker.GetServerVariable(name));
        }
Пример #7
0
        public ModMonoWorkerRequest(object worker,
					IApplicationHost appHost, string verb, string path,
					string queryString, string protocol, string localAddress,
					int serverPort, string remoteAddress, int remotePort,
					string remoteName, string[] headers, string[] headerValues)
            : this(-1, null, appHost, verb, path, queryString, protocol, localAddress,
				serverPort, remoteAddress, remotePort, remoteName, headers, headerValues)
        {
            this.worker = (ModMonoWorker) worker;
        }
Пример #8
0
        public bool GetHeadersSent(int requestId)
        {
            ModMonoWorker worker = GetWorker(requestId) as ModMonoWorker;

            return((worker != null) ? worker.HeadersSent : false);
        }