Commit Graph
11 Commits
Author SHA1 Message Date
Lluis Sanchez ef878caae3 2005-01-25 Lluis Sanchez Gual <[email protected]>
* HttpServer.cs: Use a single stream for in an out stream, since they
	where the same. Set IPAddress and ConnectionId transport headers.


svn path=/trunk/mcs/; revision=39523
2005-01-25 19:17:59 +00:00
Lluis Sanchez ba41d27138 2005-01-14 Lluis Sanchez Gual <[email protected]>
* HttpServerChannel.cs: Use the new RemotingThreadPool to manage threads.
	  Fixed some warnings.
	* HttpServer.cs: Minor fix.


svn path=/trunk/mcs/; revision=38947
2005-01-14 17:29:00 +00:00
Lluis Sanchez 95cc3b3260 2004-12-17 Lluis Sanchez Gual <[email protected]>
* HttpHelper.cs: Removed unused method. Optimized CopyStream method.
	* HttpServerChannel.cs: SendResponse does not return a bool any
	  more, it throws an exception when it fails.
	* HttpServer.cs: Improved handling of errors.


svn path=/trunk/mcs/; revision=37874
2004-12-17 12:01:43 +00:00
Duncan Mak bab786ade5 Add licensing info
svn path=/trunk/mcs/; revision=30348
2004-06-24 21:38:17 +00:00
Lluis Sanchez 1e0b8d3c0e * HttpServer.cs: Removed dead code.
svn path=/trunk/mcs/; revision=26403
2004-04-30 09:25:15 +00:00
Lluis Sanchez 2e59e74126 HttpServer.cs: Removed debug code.
svn path=/trunk/mcs/; revision=21070
2003-12-12 16:58:26 +00:00
Lluis Sanchez 292ff44766 * HttpServer.cs: Allow the use of GET method (SdlServerSink supports it).
Added some text constans for transport keys.
	* HttpServerChannel.cs: Add SdlChannelSinkProvider to the default
	sink provider chain. Removed unused ErrorMessage class.

svn path=/trunk/mcs/; revision=20966
2003-12-10 15:56:53 +00:00
Lluis Sanchez 47d9640fa6 * HttpChannel.cs: Moved initialization code in SetupChannel to the
respective client and server channels. Added implementatoin of the
	  interface IChannelReceiverHook.
	* HttpRemotingHandler.cs: Implemented.
	* HttpRemotingHandlerFactory.cs: Implemented.
	* HttpServer.cs: In general, use Stream instances instead of Socket. It is
	  more reusable in this way. Also improved formatting.
	* HttpServerChannel.cs: Implemented support for IChannelReceiverHook.
	  Added new method DispatchRequest in HttpServerTransportSink that can
	  be reused by HttpRemotingHandler.

svn path=/trunk/mcs/; revision=19943
2003-11-13 16:59:42 +00:00
Lluis Sanchez 533d806f5a * HttpHelper.cs: Fixed bug #48468. Patch by Jean-Marc Andre.
* HttpClientChannel.cs HttpServer.cs HttpServerChannel.cs: Fixed some warnings.

svn path=/trunk/mcs/; revision=18145
2003-09-17 11:37:26 +00:00
Lluis Sanchez 92fe3d5d5d * HttpClientChannel.cs: Changed text for user-agent header (removed references
to MS.NET).
	  Removed try/catch from AsyncProcessRequest. If there is an exception it must
	  flow to the caller.
	  in AsyncRequestHandler, improved management of exceptions. HttpWebRequest
	  throws an exception if the result code is 400, 500. Is is not a communication
	  error, but an application or server error. The content of the body must be
	  deserialized like in normal responses.
	  In CreateWebRequest, if the stream being sent is a MemoryStream, use a more
	  efficient way of writing the content.
	  In SendAndRecieve, same as in AsyncRequestHandler. Also moved some code to a
	  new method named ReceiveResponse, so it can be reused from AsyncRequestHandler.
	* HttpHelper.cs: Removed some debugging code that is not needed.
	* HttpServer.cs: Improved formatting of some code.
	  In CheckRequest method, send a 100-continue response if the request has
	  the header: expect:100-continue.
	  Method SendResponse: the remoting formatter may include the result code and
	  reason phrase to use in the transport headers. Used them if provided.
	* HttpServerChannel.cs: Use ThreadPool to create the thread that will answer
	  a request.

svn path=/trunk/mcs/; revision=17515
2003-08-22 14:09:48 +00:00
Lluis Sanchez eaac7d7745 * HttpChannel.cs, HttpClientChannel.cs, HttpHelper.cs, HttpServer.cs,
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel
	  by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna.

svn path=/trunk/mcs/; revision=15533
2003-06-21 12:49:23 +00:00