aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
diff options
context:
space:
mode:
authorDr Scofield2008-05-19 17:35:29 +0000
committerDr Scofield2008-05-19 17:35:29 +0000
commit3e8adc0d7866fa9dc1b5270d5dbf3994245b6d1c (patch)
treec150d15e9f81555cdd31ad53a874cc2a87042bab /OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
parentAttempt to fix incorrect animations when using ODE (bugs #1320 / #1321) (diff)
downloadopensim-SC_OLD-3e8adc0d7866fa9dc1b5270d5dbf3994245b6d1c.zip
opensim-SC_OLD-3e8adc0d7866fa9dc1b5270d5dbf3994245b6d1c.tar.gz
opensim-SC_OLD-3e8adc0d7866fa9dc1b5270d5dbf3994245b6d1c.tar.bz2
opensim-SC_OLD-3e8adc0d7866fa9dc1b5270d5dbf3994245b6d1c.tar.xz
(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.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/RestPlugin.cs')
0 files changed, 0 insertions, 0 deletions