* Added a streamhandler that does streams both in and out

* The RestDeserialisehandler now does streams and returns an object instead of string
This commit is contained in:
lbsa71
2007-10-31 12:45:03 +00:00
parent dbcab80520
commit 0d528e1d22
6 changed files with 93 additions and 56 deletions

View File

@@ -30,11 +30,8 @@ using System.IO;
namespace OpenSim.Framework.Servers
{
public interface IStreamHandler
public interface IRequestHandler
{
// Handle request stream, return byte array
byte[] Handle(string path, Stream request);
// Return response content type
string ContentType { get; }
@@ -44,4 +41,17 @@ namespace OpenSim.Framework.Servers
// Return path
string Path { get; }
}
public interface IStreamedRequestHandler : IRequestHandler
{
// Handle request stream, return byte array
byte[] Handle(string path, Stream request);
}
public interface IStreamHandler : IRequestHandler
{
// Handle request stream, return byte array
void Handle(string path, Stream request, Stream response);
}
}