The configuration information loaded includes tables (file suffixes, presentation methods) in other modules. The most likely routines needed by developers will be:
#ifndef HTRULE_H
#define HTRULE_H
#include "HTUtils.h"
#include "HTAccess.h" /* HTRequest */
typedef enum _HTRuleOp {
HT_Invalid,
HT_Map,
HT_Pass,
HT_Fail,
HT_DefProt,
HT_Protect,
HT_Exec,
HT_Redirect,
HT_Moved,
HT_UseProxy
} HTRuleOp;
#ifdef SHORT_NAMES
#define HTSearSc HTSearchScript
#define HTPutScr HTPutScript
#define HTPostSc HTPostScript
#endif /*SHORT_NAMES*/
/htbin/ it is understood
to mean a script execution request on server.
This feature needs to
be turned on by setting HTBinDir by the
htbin rule. Index searching is enabled by
setting HTSearchScript into the name of script
in BinDir doing the actual search by search rule
(BinDir must also be set in this case, of course).
#ifdef NOT_USED extern char * HTSearchScript; /* Search script name */ extern char * HTPutScript; /* Script handling PUT */ extern char * HTPostScript; /* Script handling POST */ #endif /* NOT_USED */
extern int HTAddRule PARAMS((HTRuleOp op, const char * pattern, const char * equiv));
#ifdef __STDC__ extern int HTClearRules(void); #else extern int HTClearRules(); #endif
PUBLIC char * HTTranslate PARAMS((CONST char * required));
extern int HTSetConfiguration PARAMS((CONST char * config));
#ifdef __STDC__ extern int HTLoadRules(const char * filename); #else extern int HTLoadRules(); #endif
#endif /* HTUtils.h */end