diff options
author | Greg Stein <gstein@apache.org> | 2000-07-04 02:28:25 +0200 |
---|---|---|
committer | Greg Stein <gstein@apache.org> | 2000-07-04 02:28:25 +0200 |
commit | d02f5c7aba32a38aa21c00947d2b2681e543ab65 (patch) | |
tree | 71026e3ae4e90cfeadc8968ecce5b3c8c4aa9dfe /include/http_protocol.h | |
parent | Joe Orton writes: (diff) | |
download | apache2-d02f5c7aba32a38aa21c00947d2b2681e543ab65.tar.xz apache2-d02f5c7aba32a38aa21c00947d2b2681e543ab65.zip |
add ap_get_status_line() so that modules can get a standardized
Status-Line value for their response.
Submitted by: Joe Orton <joe@orton.demon.co.uk>
Reviewed by: Greg Stein
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85762 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_protocol.h')
-rw-r--r-- | include/http_protocol.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h index 43a0a6aa45..c52b141d1f 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -165,6 +165,13 @@ API_EXPORT(int) ap_rflush(request_rec *r); API_EXPORT(int) ap_index_of_response(int status); +/* + * Return the Status-Line for a given status code (excluding the + * HTTP-Version field). If an invalid or unknown status code is + * passed, "500 Internal Server Error" will be returned. + */ +API_EXPORT(const char *) ap_get_status_line(int status); + /* Reading a block of data from the client connection (e.g., POST arg) */ API_EXPORT(int) ap_setup_client_block(request_rec *r, int read_policy); |