mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
further work in progress on the HttpServer side: XmlRpc handler path
almost complete and soon to be ready for testing; OSHttpResponse code out.
This commit is contained in:
@@ -59,10 +59,18 @@ namespace OpenSim.Framework.Servers
|
||||
{
|
||||
Unprocessed,
|
||||
Pass,
|
||||
Handled,
|
||||
Detached,
|
||||
Done,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An OSHttpHandler that matches on the "content-type" header can
|
||||
/// supply an OSHttpContentTypeChecker delegate which will be
|
||||
/// invoked by the request matcher in OSHttpRequestPump.
|
||||
/// </summary>
|
||||
/// <returns>true if the handler is interested in the content;
|
||||
/// false otherwise</returns>
|
||||
public delegate bool OSHttpContentTypeChecker(OSHttpRequest req);
|
||||
|
||||
public interface OSHttpHandler
|
||||
{
|
||||
/// <summary>
|
||||
@@ -98,6 +106,19 @@ namespace OpenSim.Framework.Servers
|
||||
get;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// An OSHttpHandler that matches on the "content-type" header can
|
||||
/// supply an OSHttpContentTypeChecker delegate which will be
|
||||
/// invoked by the request matcher in OSHttpRequestPump.
|
||||
/// </summary>
|
||||
/// <returns>true if the handler is interested in the content;
|
||||
/// false otherwise</returns>
|
||||
OSHttpContentTypeChecker ContentTypeChecker
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
OSHttpHandlerResult Process(OSHttpRequest request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user