Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : example
Dir : mod_cplusplus/example/handler
Modified Files:
test_handler.cpp
Log Message:
now mod_cplusplus runs on OS X with apache. only need to softlink glibtoolize to libtoolize.
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/handler/test_handler.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- test_handler.cpp 26 Apr 2002 18:57:00 -0000 1.10
+++ test_handler.cpp 27 Aug 2002 03:35:51 -0000 1.11
@@ -1,5 +1,5 @@
#include "test_handler.h"
-#include "request_env.h"
+
TestHandler::TestHandler()
: ApacheHandler()
@@ -16,44 +16,9 @@
char buf[1024 * 8];
apr_size_t len_read;
apr_status_t rc;
- request_env ap( pRequest->get_request_rec() );
-
mHits++;
- ap << "This handler has dealt with " << mHits << " hits \n";
- ap << "Testing for param name BOO" << std::endl;
-
pRequest->dump();
-
ap_setup_client_block(pRequest->get_request_rec(), REQUEST_CHUNKED_ERROR);
- if( (pRequest->method_number() == M_POST) ||
- (pRequest->method_number() == M_PUT) ) {
- ap << "Content:";
- while((len_read = pRequest->get_client_block(buf,
- sizeof(buf))) > 0) {
- ap << apr_pstrndup(pRequest->pool(), buf, len_read);
- ap << std::endl;
- }
- }
-
- env_value *boo = ap["BOO"];
-
- if ( boo ){
- ap << "Found! Has " << boo->num_vals() << " Values.\n";
-
- for ( env_value::const_iterator it = boo->begin();
- it != boo->end(); it++ ){
-
- ap << " " << (*it) << std::endl;
- }
- } else {
- ap << "Not Found!\n";
- }
-
- ap.width(40);
- ap.fill('-');
- ap << "\n" << "I will now dump out everything I recieved\n";
- ap.dump();
-
return OK;
}
|