nsmcp::RequestRoutingTool method contextSupported (public)

 <instance of nsmcp::RequestRoutingTool[i]> contextSupported server

Defined in /usr/local/ns/tcl/nsmcp/traffic-tools.tcl

Probe whether native routing supports a request-context ns_set. Use a temporary context and release it even when the capability probe fails.

Parameters:
server (required)
Selected NaviServer virtual-server name.
Returns:
True when contextual routing lookup is supported, otherwise false.

Testcases:
No testcase defined.
Source code:
set context [ns_set create]
try {
    return [expr {![catch {
        ns_server -server $server mapped -context $context {GET /}
    }]}]
} finally {
    ns_set free $context
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: