Exemple #1
0
        /// <summary>
        /// Handle the HTTP connection
        ///
        /// This implementation doesn't support keep alive so each HTTP session
        /// consists of parsing the request, dispatching to a handler and then
        /// sending the response before closing the connection.
        /// </summary>
        /// <param name="server"></param>
        /// <param name="hostname"></param>
        /// <param name="input"></param>
        /// <param name="output"></param>
        private void ConnectionRequested(ISocketServer server, string hostname, Stream input, Stream output)
        {
            HttpRequestProcessor processor = new HttpRequestProcessor(this);

            processor.ProcessHttpRequest(input, output);
        }
Exemple #2
0
		/// <summary>
		/// Handle the HTTP connection
		/// 
		/// This implementation doesn't support keep alive so each HTTP session
		/// consists of parsing the request, dispatching to a handler and then
		/// sending the response before closing the connection.
		/// </summary>
		/// <param name="server"></param>
		/// <param name="hostname"></param>
		/// <param name="input"></param>
		/// <param name="output"></param>
		private void ConnectionRequested(ISocketServer server, string hostname, Stream input, Stream output)
		{
			HttpRequestProcessor processor = new HttpRequestProcessor(this);
			processor.ProcessHttpRequest(input, output);
		}