diff options
author | Dr Scofield | 2008-05-19 11:38:35 +0000 |
---|---|---|
committer | Dr Scofield | 2008-05-19 11:38:35 +0000 |
commit | d725d1208bfbeae02f181cc6731f5a98dc7fce6d (patch) | |
tree | fd27fe08b43c7ef5d15ee0e829947f06d97e8375 /OpenSim/Framework/Servers/BaseStreamHandler.cs | |
parent | Rework some of the animation logic in an attempt to resolve #1318 (diff) | |
download | opensim-SC_OLD-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.zip opensim-SC_OLD-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.gz opensim-SC_OLD-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.bz2 opensim-SC_OLD-d725d1208bfbeae02f181cc6731f5a98dc7fce6d.tar.xz |
adding OSHttpRequest and OSHttpResponse which wrap HttpListenerRequest and HttpListenerResponse respectively.
enhancing IStreamHandler and IStreamedHandler interfaces so that OSHttp{Request,Response} get passed in,
allowing RestHandlers to set response status code, redirections, etc.
Diffstat (limited to 'OpenSim/Framework/Servers/BaseStreamHandler.cs')
-rw-r--r-- | OpenSim/Framework/Servers/BaseStreamHandler.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Servers/BaseStreamHandler.cs b/OpenSim/Framework/Servers/BaseStreamHandler.cs index 91ebc2c..a81a1b7 100644 --- a/OpenSim/Framework/Servers/BaseStreamHandler.cs +++ b/OpenSim/Framework/Servers/BaseStreamHandler.cs | |||
@@ -26,12 +26,14 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.IO; | 28 | using System.IO; |
29 | using System.Net; | ||
29 | 30 | ||
30 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
31 | { | 32 | { |
32 | public abstract class BaseStreamHandler : BaseRequestHandler, IStreamedRequestHandler | 33 | public abstract class BaseStreamHandler : BaseRequestHandler, IStreamedRequestHandler |
33 | { | 34 | { |
34 | public abstract byte[] Handle(string path, Stream request); | 35 | public abstract byte[] Handle(string path, Stream request, |
36 | OSHttpRequest httpRequest, OSHttpResponse httpResponse); | ||
35 | 37 | ||
36 | protected BaseStreamHandler(string httpMethod, string path) : base(httpMethod, path) | 38 | protected BaseStreamHandler(string httpMethod, string path) : base(httpMethod, path) |
37 | { | 39 | { |