minor: add some more documentation for IHttpServer.AddHTTPHandler() to tell the caller that the best match for an incoming request URI is invoked
parent
e844524b41
commit
2313d14acb
|
@ -203,7 +203,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
{
|
||||
m_pollHandlers.Add(methodName,args);
|
||||
pollHandlerResult = true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -211,7 +210,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
return AddHTTPHandler(methodName, handler);
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
// Note that the agent string is provided simply to differentiate
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
bool AddAgentHandler(string agent, IHttpAgentHandler handler);
|
||||
|
||||
/// <summary>
|
||||
/// Add a handler for an HTTP request
|
||||
/// Add a handler for an HTTP request.
|
||||
/// </summary>
|
||||
///
|
||||
/// This handler can actually be invoked either as
|
||||
|
@ -67,6 +67,10 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
///
|
||||
/// http://localhost:9000/object/
|
||||
///
|
||||
/// In addition, the handler invoked by the HTTP server for any request is the one when best matches the request
|
||||
/// URI. So if a handler for "/myapp/" is registered and a request for "/myapp/page" is received, then
|
||||
/// the "/myapp/" handler is invoked if no "/myapp/page" handler exists.
|
||||
///
|
||||
/// <param name="methodName"></param>
|
||||
/// <param name="handler"></param>
|
||||
/// <returns>
|
||||
|
|
Loading…
Reference in New Issue