pulling query handling through the handlers. adding (non-functional,
work-in-progress) HttpHandler. NOTE: non-active code. does not glow in the dark. non-combustible.0.6.0-stable
parent
c0e389cfff
commit
6a7d544497
|
@ -137,10 +137,12 @@ namespace OpenSim.Framework.Servers
|
||||||
/// <param name="contentType">null or content type
|
/// <param name="contentType">null or content type
|
||||||
/// regex</param>
|
/// regex</param>
|
||||||
/// <param name="whitelist">null or IP address regex</param>
|
/// <param name="whitelist">null or IP address regex</param>
|
||||||
public OSHttpHandler(Regex method, Regex path, Dictionary<string, Regex> headers, Regex contentType, Regex whitelist)
|
public OSHttpHandler(Regex method, Regex path, Dictionary<string, Regex> query,
|
||||||
|
Dictionary<string, Regex> headers, Regex contentType, Regex whitelist)
|
||||||
{
|
{
|
||||||
_method = method;
|
_method = method;
|
||||||
_path = path;
|
_path = path;
|
||||||
|
_query = query;
|
||||||
_ipEndPointRegex = whitelist;
|
_ipEndPointRegex = whitelist;
|
||||||
|
|
||||||
if (null == _headers && null != contentType)
|
if (null == _headers && null != contentType)
|
||||||
|
|
|
@ -114,7 +114,7 @@ namespace OpenSim.Framework.Servers
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public OSHttpXmlRpcHandler(XmlRpcMethod handler, string methodName, Regex path,
|
public OSHttpXmlRpcHandler(XmlRpcMethod handler, string methodName, Regex path,
|
||||||
Dictionary<string, Regex> headers, Regex whitelist)
|
Dictionary<string, Regex> headers, Regex whitelist)
|
||||||
: base(new Regex(@"^POST$", RegexOptions.IgnoreCase | RegexOptions.Compiled), path, headers,
|
: base(new Regex(@"^POST$", RegexOptions.IgnoreCase | RegexOptions.Compiled), path, null, headers,
|
||||||
new Regex(@"^(text|application)/xml", RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
new Regex(@"^(text|application)/xml", RegexOptions.IgnoreCase | RegexOptions.Compiled),
|
||||||
whitelist)
|
whitelist)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue