From ba06ae502de223c81508565ce523d81231250e9f Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Mon, 9 Oct 2000 14:15:32 +0000 Subject: [PATCH] Update some docs httpd.h git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86474 13f79535-47bb-0310-9956-ffa450edef68 --- include/httpd.h | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/include/httpd.h b/include/httpd.h index bd8a25a0f2..6a8d6f4e3c 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -369,8 +369,25 @@ extern "C" { #define APEXIT_CHILDINIT 0x3 #define APEXIT_CHILDFATAL 0xf +/** + * Get the server version string + * @return The server version string + * @deffunc const char *ap_get_server_version(void) + */ API_EXPORT(const char *) ap_get_server_version(void); + +/** + * Add a component to the version string + * @param pconf The pool to allocate the component out of + * @param component The string to add + * @deffunc void ap_add_version_component(apr_pool_t *pconf, const char *component) + */ API_EXPORT(void) ap_add_version_component(apr_pool_t *pconf, const char *component); + +/** + * Get the date a time that the server was built + * @return The server build time string + */ API_EXPORT(const char *) ap_get_server_built(void); /* Numeric release version identifier: MMNNFFRBB: major minor fix final beta @@ -485,15 +502,18 @@ API_EXPORT(const char *) ap_get_server_built(void); #define METHODS 16 -/* +typedef struct ap_method_list_t ap_method_list_t; +/** * Structure for handling HTTP methods. Methods known to the server are * accessed via a bitmask shortcut; extension methods are handled by * an array. */ -typedef struct { +struct ap_method_list_t { + /* The bitmask used for known methods */ int method_mask; + /* The array used for extension methods */ apr_array_header_t *method_list; -} ap_method_list_t; +}; #define CGI_MAGIC_TYPE "application/x-httpd-cgi" #define INCLUDES_MAGIC_TYPE "text/x-server-parsed-html" @@ -673,9 +693,12 @@ struct request_rec { * HTTP_METHOD_NOT_ALLOWED. Unfortunately this means that a Script GET * handler can't be installed by mod_actions. */ - int allowed; /* Allowed methods - for 405, OPTIONS, etc */ - apr_array_header_t *allowed_xmethods; /* Array of extension methods */ - ap_method_list_t *allowed_methods; /* List of allowed methods */ + /** Allowed methods - for 405, OPTIONS, etc */ + int allowed; + /** Array of extension methods */ + apr_array_header_t *allowed_xmethods; + /** List of allowed methods */ + ap_method_list_t *allowed_methods; /** byte count in stream is for body */ int sent_bodyct; @@ -1403,11 +1426,6 @@ API_EXPORT(char *) ap_pbase64decode(apr_pool_t *p, const char *bufcoded); */ API_EXPORT(char *) ap_pbase64encode(apr_pool_t *p, char *string); -/* The functions have been deprecated for the two above functions. - */ -API_EXPORT(char *) ap_uudecode(apr_pool_t *p, const char *bufcoded); -API_EXPORT(char *) ap_uuencode(apr_pool_t *p, char *string); - #include "pcreposix.h" /** -- 2.40.0