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/IStreamHandler.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 '')
-rw-r--r-- | OpenSim/Framework/Servers/IStreamHandler.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/IStreamHandler.cs b/OpenSim/Framework/Servers/IStreamHandler.cs index de6fdf5..b3ce34d 100644 --- a/OpenSim/Framework/Servers/IStreamHandler.cs +++ b/OpenSim/Framework/Servers/IStreamHandler.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System.Collections; | 28 | using System.Collections; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Net; | ||
30 | 31 | ||
31 | namespace OpenSim.Framework.Servers | 32 | namespace OpenSim.Framework.Servers |
32 | { | 33 | { |
@@ -45,13 +46,13 @@ namespace OpenSim.Framework.Servers | |||
45 | public interface IStreamedRequestHandler : IRequestHandler | 46 | public interface IStreamedRequestHandler : IRequestHandler |
46 | { | 47 | { |
47 | // Handle request stream, return byte array | 48 | // Handle request stream, return byte array |
48 | byte[] Handle(string path, Stream request); | 49 | byte[] Handle(string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse); |
49 | } | 50 | } |
50 | 51 | ||
51 | public interface IStreamHandler : IRequestHandler | 52 | public interface IStreamHandler : IRequestHandler |
52 | { | 53 | { |
53 | // Handle request stream, return byte array | 54 | // Handle request stream, return byte array |
54 | void Handle(string path, Stream request, Stream response); | 55 | void Handle(string path, Stream request, Stream response, OSHttpRequest httpReqbuest, OSHttpResponse httpResponse); |
55 | } | 56 | } |
56 | public interface IGenericHTTPHandler : IRequestHandler | 57 | public interface IGenericHTTPHandler : IRequestHandler |
57 | { | 58 | { |