Return-Path:
Delivered-To: apmail-httpd-cvs-archive@www.apache.org
Received: (qmail 10122 invoked from network); 14 Mar 2011 20:58:59 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 14 Mar 2011 20:58:59 -0000
Received: (qmail 57283 invoked by uid 500); 14 Mar 2011 20:58:59 -0000
Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org
Received: (qmail 57236 invoked by uid 500); 14 Mar 2011 20:58:59 -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 57229 invoked by uid 99); 14 Mar 2011 20:58:59 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Mar 2011 20:58:59 +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; Mon, 14 Mar 2011 20:58:56 +0000
Received: by eris.apache.org (Postfix, from userid 65534)
id 7561C23889D7; Mon, 14 Mar 2011 20:58:32 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r1081559 -
/httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml
Date: Mon, 14 Mar 2011 20:58:32 -0000
To: cvs@httpd.apache.org
From: trawick@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20110314205832.7561C23889D7@eris.apache.org>
X-Virus-Checked: Checked by ClamAV on apache.org
Author: trawick
Date: Mon Mar 14 20:58:32 2011
New Revision: 1081559
URL: http://svn.apache.org/viewvc?rev=1081559&view=rev
Log:
add more module upgrade hints
change some existing text to be more correct+readable
Modified:
httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml
Modified: httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml?rev=1081559&r1=1081558&r2=1081559&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml (original)
+++ httpd/httpd/trunk/docs/manual/developer/new_api_2_4.xml Mon Mar 14 20:58:32 2011
@@ -297,17 +297,32 @@
eliminating that mechanism and relying on the use of
different APLOG_TRACEn
levels. If expensive
trace processing needs to be bypassed depending on the
- configured log level, use
- the APLOGtracen
- and APLOGrtracen
macros.
+ configured log level, use the APLOGtracen
+ and APLOGrtracen
macros to first check
+ if tracing is enabled.
+ Modules sometimes add process id and/or thread id to their log
+ messages. These ids are now logged by default, so it may not
+ be necessary for the module to log them explicitly. (Users may
+ remove them from the error log format, but they can be
+ instructed to add it back if necessary for problem diagnosis.)
- If your module uses these APIs...
+ If your module uses these existing APIs...
+ ap_default_type()
+ - This is no longer available; Content-Type must be configured
+ explicitly or added by the application.
+
+ ap_get_server_name()
+ - If the returned server name is used in a URL,
+ use
ap_get_server_name_for_url()
instead. This new
+ function handles the odd case where the server name is an IPv6
+ literal address.
+
ap_get_server_version()
- For logging purposes, where detailed information is
appropriate, use
ap_get_server_description()
.
@@ -369,6 +384,8 @@
0/APR_SUCCESS if there is no such error information, or a valid
apr_status_t
value otherwise.
+ unixd_config
+ - This has been renamed to ap_unixd_config.
@@ -376,19 +393,41 @@
If your module interfaces with this feature...
- suEXEC
- - Optional:
ap_unixd_config.suexec_enabled
is
- still provided, but new
- field suexec_disabled_reason
provides an
- explanation if the feature is not available.
+ - Optional: If your module logs an error
+ when
ap_unixd_config.suexec_enabled
is 0,
+ also log the value of the new
+ field suexec_disabled_reason
, which contains an
+ explanation of why it is not available.
- Extended status data in the scoreboard
- - Instead of requiring mod_status and
ExtendedStatus
- On
, just set ap_extended_status
- to 1
in a pre-config hook.
+ - In previous releases,
ExtendedStatus
had to be
+ set to On
, which in turn required that
+ mod_status was loaded. In 2.4, just
+ set ap_extended_status
to 1
in a
+ pre-config hook and the extended status data will be
+ available.
+
+ Does your module...
+ Parse query args
+ Consider if ap_args_to_table()
would be
+ helpful.
+
+ Parse form data...
+ Use ap_parse_form_data()
.
+
+ Check for request header fields Content-Length
+ and Transfer-Encoding
to see if a body was
+ specified
+ Use ap_request_has_body()
.
+
+ Implement cleanups which clear pointer variables
+ Use ap_pool_cleanup_set_null()
.
+
+