change SimpleStreamHandler to have a processor method argument

This commit is contained in:
UbitUmarov
2020-04-23 22:30:40 +01:00
parent 46162e620a
commit 426d83c535
3 changed files with 26 additions and 9 deletions

View File

@@ -97,6 +97,7 @@ namespace OpenSim.Framework.Servers.HttpServer
/// </summary>
/// <param name="handler"></param>
void AddStreamHandler(IRequestHandler handler);
void AddSimpleStreamHandler(ISimpleStreamHandler handler);
bool AddXmlRPCHandler(string method, XmlRpcMethod handler);
bool AddXmlRPCHandler(string method, XmlRpcMethod handler, bool keepAlive);
@@ -141,6 +142,7 @@ namespace OpenSim.Framework.Servers.HttpServer
bool RemoveLLSDHandler(string path, LLSDMethod handler);
void RemoveStreamHandler(string httpMethod, string path);
void RemoveSimpleStreamHandler(string path);
void RemoveXmlRPCHandler(string method);

View File

@@ -101,4 +101,6 @@ namespace OpenSim.Framework.Servers.HttpServer
// Handle request stream, return byte array
void Handle(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse);
}
public delegate void SimpleStreamMethod(IOSHttpRequest httpRequest, IOSHttpResponse httpResponse);
}