Apache 1.3 API Documentation

Routine ap_allow_options

Definition:

int ap_allow_options(request_rec *r);
     

Usage example:

request_rec *r;
int result;
result = ap_allow_options(r);
if (result & OPT_INCLUDES) {
    /* Do something meaningful and Includes-related */
} 
     

This routine returns a list of the options that are allowed for the specified request, specified as a bitmask. Use the various OPT_* constants (such as OPT_MULTI) to mask out specific bits. Note that when checking OPT_NONE, you should check the return value for equality, and that for OPT_ALL you should perform a bitwise AND and compare the result against OPT_ALL to ensure that all of the bits are set.

See also:
OPT_ALL, OPT_EXECCGI, OPT_INCLUDES, OPT_INCNOEXEC, OPT_INDEXES, OPT_MULTI, OPT_NONE, OPT_SYM_LINKS, OPT_SYM_OWNER, OPT_UNSET

Previous: ap_add_version_component Next: ap_allow_overrides

Table of Contents (Routines, Structures, Data Cells, Constants)