OpenSimMirror/OpenSim
Dr Scofield 3e8adc0d78 (from awebb)
This patch adds an additional handler to the existing BaseHttpServer. 
It does not affect any of the existing behaviors except insofar as the 
new handler may be selected.

It is selected first because its Agent-oriented nature means that it 
should not be pre-empted.  The new handler type is defined by IHttpAgentHandler 
in Framework/Servers and has two interface methods: Match and Handle.

The Match function returns a boolean result based upon examination of 
information presented in the User-Agent header.

The Handle function expects to get the request and response instances 
associated with the flow. The handler is responsible for ALL activity 
associated with the request except in the event of an unhandled exception, 
in which case the HandleAgentRequest routine will generate a 500 status 
message and close the stream.

There are two immediateley apparent (and VERY easy to implement) 
improvements that could be made:

   1. The Match call could be allowed to operate over the entire 
      request context., rather than just agent identity.
   2. The Handler could return a boolean indication of whether or not 
      the request was actually handled, and if not, the remaining handler 
      mechanism could take a shot at it. This would eliminate issues 
      arising from pre-empted streams.
2008-05-19 17:35:29 +00:00
..
ApplicationPlugins fixing exception when RestPlugin not configured. refactors RestRegionPlugin, adds error checking. 2008-05-19 11:52:51 +00:00
Data Formatting cleanup. 2008-05-17 00:06:35 +00:00
Framework (from awebb) 2008-05-19 17:35:29 +00:00
Grid adding OSHttpRequest and OSHttpResponse which wrap HttpListenerRequest and HttpListenerResponse respectively. 2008-05-19 11:38:35 +00:00
Region Attempt to fix incorrect animations when using ODE (bugs #1320 / #1321) 2008-05-19 14:49:20 +00:00
TestSuite Update svn properties. Minor formatting cleanup. 2008-05-19 13:26:42 +00:00
Tests Formatting cleanup. 2008-05-16 01:22:11 +00:00
Tools Update svn properties. Minor formatting cleanup. 2008-05-19 13:26:42 +00:00