Changeset 40 in Main for trunk/Module/mod_example.c
- Timestamp:
- Sep 17, 2024, 9:31:08 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Module/mod_example.c
r20 r40 1 1 /* $Id$ */ 2 /* This module will accept all directives, and always return 403 on the access. */ 2 3 3 4 #include "../Server/tw_module.h" … … 9 10 } 10 11 12 int mod_config(struct tw_tool* tools, char** argv, int argc) { return TW_CONFIG_PARSED; } 13 11 14 int mod_request(struct tw_tool* tools, struct tw_http_request* req, struct tw_http_response* res) { return TW_MODULE_ERROR(403); }
Note:
See TracChangeset
for help on using the changeset viewer.