httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S. Sahayaraj" <ssahaya...@quark.com>
Subject [users@httpd] User defined request handlers
Date Fri, 31 Oct 2008 14:57:05 GMT
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


Mime
View raw message