420
420
AP_DECLARE(void) ap_get_server_revision(ap_version_t *version);
423
* Get the server version string
423
* Get the server version string, as controlled by the ServerTokens directive
424
424
* @return The server version string
425
* @deprecated @see ap_get_server_banner() and ap_get_server_description()
426
427
AP_DECLARE(const char *) ap_get_server_version(void);
429
* Add a component to the version string
430
* Get the server banner in a form suitable for sending over the
431
* network, with the level of information controlled by the
432
* ServerTokens directive.
433
* @return The server banner
435
AP_DECLARE(const char *) ap_get_server_banner(void);
438
* Get the server description in a form suitable for local displays,
439
* status reports, or logging. This includes the detailed server
440
* version and information about some modules. It is not affected
441
* by the ServerTokens directive.
442
* @return The server description
444
AP_DECLARE(const char *) ap_get_server_description(void);
447
* Add a component to the server description and banner strings
448
* (The latter is returned by the deprecated function
449
* ap_get_server_version().)
430
450
* @param pconf The pool to allocate the component from
431
451
* @param component The string to add
518
538
#define ap_is_HTTP_CLIENT_ERROR(x) (((x) >= 400)&&((x) < 500))
519
539
/** is the status code a server error */
520
540
#define ap_is_HTTP_SERVER_ERROR(x) (((x) >= 500)&&((x) < 600))
541
/** is the status code a (potentially) valid response code? */
542
#define ap_is_HTTP_VALID_RESPONSE(x) (((x) >= 100)&&((x) < 600))
522
544
/** should the status code drop the connection */
523
545
#define ap_status_drops_connection(x) \