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:
Dr Scofield
2008-07-14 12:18:32 +00:00
parent d262fb5650
commit 7692f3e18f
6 changed files with 598 additions and 83 deletions

View File

@@ -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);
}
}