Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86D03EEA8 for ; Tue, 19 Feb 2013 21:33:53 +0000 (UTC) Received: (qmail 96158 invoked by uid 500); 19 Feb 2013 21:33:53 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 96108 invoked by uid 500); 19 Feb 2013 21:33:53 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 96099 invoked by uid 99); 19 Feb 2013 21:33:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 21:33:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2013 21:33:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C2F2F23889CB; Tue, 19 Feb 2013 21:33:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1447931 - /httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en Date: Tue, 19 Feb 2013 21:33:30 -0000 To: cvs@httpd.apache.org From: humbedooh@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130219213330.C2F2F23889CB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: humbedooh Date: Tue Feb 19 21:33:30 2013 New Revision: 1447931 URL: http://svn.apache.org/r1447931 Log: xforms Modified: httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en Modified: httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en?rev=1447931&r1=1447930&r2=1447931&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en (original) +++ httpd/httpd/branches/2.4.x/docs/manual/developer/modguide.html.en Tue Feb 19 21:33:30 2013 @@ -314,11 +314,11 @@ looks like

The request_rec structure

The most essential part of any request is the request record . In a call to a handler function, this is represented by the -request_req* structure passed along with every call that is made. +request_rec* structure passed along with every call that is made. This struct, typically just refered to as r in modules, contains all the information you need for your module to fully process any HTTP request and respond accordingly.

Some key elements of the -request_req structure are: +request_rec structure are:

  • r->handler (char*): Contains the name of the handler the server is currently asking to do the handling of this request
  • @@ -333,7 +333,7 @@ request_req structure are: "Memory management" chapter.

-A complete list of all the values contained with in the request_req structure can be found in +A complete list of all the values contained with in the request_rec structure can be found in the httpd.h header file or at http://ci.apache.org/projects/httpd/trunk/doxygen/structrequest__rec.html.

@@ -428,7 +428,7 @@ the next, without informing other handle
  • - ap_rputs(const char *string, request_req *r):
    + ap_rputs(const char *string, request_rec *r):
    Sends a string of text to the client. This is a shorthand version of ap_rwrite. @@ -454,7 +454,7 @@ the next, without informing other handle
  • - ap_set_content_type(request_req *r, const char *type):
    + ap_set_content_type(request_rec *r, const char *type):
    Sets the content type of the output you are sending. @@ -1625,7 +1625,7 @@ typedef struct { const char* value; } keyValuePair; -keyValuePair* readPost(request_req* r) { +keyValuePair* readPost(request_rec* r) { apr_array_header_t *pairs = NULL; apr_off_t len; apr_size_t size; @@ -1651,7 +1651,7 @@ keyValuePair* readPost(request_req* r) { return kvp; } -static int example_handler(request_req *r) +static int example_handler(request_rec *r) { /*~~~~~~~~~~~~~~~~~~~~~~*/ @@ -1679,7 +1679,7 @@ static int example_handler(request_req *
    -static int example_handler(request_req *r) 
    +static int example_handler(request_rec *r) 
     {
         /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
         const apr_array_header_t    *fields;
    @@ -1741,7 +1741,7 @@ static int util_read(request_rec *r, con
         return(rc);
     }
     
    -static int example_handler(request_req* r) 
    +static int example_handler(request_rec* r) 
     {
         /*~~~~~~~~~~~~~~~~*/
         apr_off_t   size;