Hello everyone,
I'm a new face in httpd development and have a query regarding
the customization request handlers creation and its process with httpd.
1. In order to process the customized requests and their parameters
through httpd, I was able to create a new module, configured data in
conf file and successfully done the deployment with Apache "modules"
folder. It works fine, no issues.
2. Now, I want to develop the HTTP Webserver using the apache
precompiled libraries like libhttpd, libapr-1, libapriconv-1 and
libaprutil-1 and then would like to create the custom request handlers
through hooking mechanism.
a. Here, I was able to create the HTTP Server and it's running
successfully, but I couldn't create my own request handlers using the
hook functions API's and their in-built macro available in Apache.
Based on Apache 2.2 documentation, I'm using the following code.
AP_DECLARE_HOOK(int, hook_name, (request_rec *r))
APR_HOOK_STRUCT(
APR_HOOK_LINK(My_RequestHandler)
)
AP_IMPLEMENT_HOOK_RUN_ALL(int,
My_RequestHandler, (request_rec *r), r, OK, DECLINED)
It gives me the compilation error on Windows, can anyone of you help me
to resolve this issue?
Thanks,
Sahay