ad_register_filter

EveAndersson.com : API Browser : ad_register_filter

ad_register_filter

ad_register_filter [ -debug debug ] [ -priority priority ] \
    [ -critical critical ] [ -description description ] kind method \
    path proc [ args... ]
Defined in packages/acs-core/request-processor-procs.tcl

Registers a filter that gets called during page serving. The filter should return one of

  • filter_ok, meaning the page serving will continue;
  • filter_break meaning the rest of the filters of this type will not be called;
  • filter_return meaning the server will close the connection and end the request processing.

Switches:
-debug (defaults to "f") - If debug is set to "t", all invocations of the filter will be ns_logged.
-priority (defaults to "10000") - Priority is an integer; lower numbers indicate higher priority.
-critical (defaults to "f") - If a filter is not critical, page viewing will not abort if a filter fails.
-description (optional)

Parameters:
kind - Specify preauth, postauth or trace.
method - Use a method of "*" to register GET, POST, and HEAD filters.
path
proc
[ show source ]

Show another procedure:

eve@eveandersson.com