let show http-handlers list simpleStreamHandlers

master
UbitUmarov 2020-04-24 00:24:02 +01:00
parent 9000240238
commit 8d2f90a8e2
2 changed files with 13 additions and 2 deletions

View File

@ -370,6 +370,11 @@ namespace OpenSim.Framework.Servers.HttpServer
return new List<string>(m_streamHandlers.Keys);
}
public List<string> GetSimpleStreamHandlerKeys()
{
return new List<string>(m_simpleStreamHandlers.Keys);
}
private static string GetHandlerKey(string httpMethod, string path)
{
return httpMethod + ":" + path;

View File

@ -265,10 +265,16 @@ namespace OpenSim.Framework.Servers
foreach (String s in httpServer.GetLLSDHandlerKeys())
handlers.AppendFormat("\t{0}\n", s);
handlers.AppendFormat("* StreamHandlers ({0}):\n", httpServer.GetStreamHandlerKeys().Count);
foreach (String s in httpServer.GetStreamHandlerKeys())
List<string> shdrs = httpServer.GetStreamHandlerKeys();
handlers.AppendFormat("* StreamHandlers ({0}):\n", shdrs.Count);
foreach (String s in shdrs)
handlers.AppendFormat("\t{0}\n", s);
shdrs = httpServer.GetSimpleStreamHandlerKeys();
handlers.AppendFormat("* SimpleStreamHandlers ({0}):\n", shdrs.Count);
foreach (String s in shdrs)
handlers.AppendFormat("\t***:{0}\n", s);
handlers.Append("\n");
}
}