diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Servers/IStreamHandler.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/IStreamHandler.cs b/OpenSim/Framework/Servers/IStreamHandler.cs index d674172..6dc7189 100644 --- a/OpenSim/Framework/Servers/IStreamHandler.cs +++ b/OpenSim/Framework/Servers/IStreamHandler.cs | |||
@@ -30,11 +30,8 @@ using System.IO; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework.Servers | 31 | namespace OpenSim.Framework.Servers |
32 | { | 32 | { |
33 | public interface IStreamHandler | 33 | public interface IRequestHandler |
34 | { | 34 | { |
35 | // Handle request stream, return byte array | ||
36 | byte[] Handle(string path, Stream request); | ||
37 | |||
38 | // Return response content type | 35 | // Return response content type |
39 | string ContentType { get; } | 36 | string ContentType { get; } |
40 | 37 | ||
@@ -44,4 +41,17 @@ namespace OpenSim.Framework.Servers | |||
44 | // Return path | 41 | // Return path |
45 | string Path { get; } | 42 | string Path { get; } |
46 | } | 43 | } |
44 | |||
45 | public interface IStreamedRequestHandler : IRequestHandler | ||
46 | { | ||
47 | // Handle request stream, return byte array | ||
48 | byte[] Handle(string path, Stream request); | ||
49 | } | ||
50 | |||
51 | public interface IStreamHandler : IRequestHandler | ||
52 | { | ||
53 | // Handle request stream, return byte array | ||
54 | void Handle(string path, Stream request, Stream response); | ||
55 | } | ||
56 | |||
47 | } \ No newline at end of file | 57 | } \ No newline at end of file |