diff options
Diffstat (limited to 'OpenSim/Framework/Servers/IStreamHandler.cs')
-rw-r--r-- | OpenSim/Framework/Servers/IStreamHandler.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/IStreamHandler.cs b/OpenSim/Framework/Servers/IStreamHandler.cs new file mode 100644 index 0000000..6cab40d --- /dev/null +++ b/OpenSim/Framework/Servers/IStreamHandler.cs | |||
@@ -0,0 +1,22 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using System.IO; | ||
5 | |||
6 | namespace OpenSim.Framework.Servers | ||
7 | { | ||
8 | public interface IStreamHandler | ||
9 | { | ||
10 | // Handle request stream, return byte array | ||
11 | byte[] Handle(string path, Stream request ); | ||
12 | |||
13 | // Return response content type | ||
14 | string ContentType { get; } | ||
15 | |||
16 | // Return required http method | ||
17 | string HttpMethod { get;} | ||
18 | |||
19 | // Return path | ||
20 | string Path { get; } | ||
21 | } | ||
22 | } | ||