diff options
author | Yann Ylavic <ylavic@apache.org> | 2016-11-15 09:06:55 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2016-11-15 09:06:55 +0000 |
commit | ef6e478b7831e43f475c47920c52a278e5359000 (patch) | |
tree | 585d418440e2ea1bd79d526d5fdaf3877bb0a624 /include/http_protocol.h | |
parent | f8b4fe0fa0a7ff41ad456191d8c887220baa325f (diff) | |
download | httpd-ef6e478b7831e43f475c47920c52a278e5359000.tar.gz |
http: Allow unknown response status' lines returned in the form of:
HTTP/x.x xxx Status xxx
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769760 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_protocol.h')
-rw-r--r-- | include/http_protocol.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h index 77c9766b60..63c3b0cc65 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -473,6 +473,17 @@ AP_DECLARE(int) ap_index_of_response(int status); */ AP_DECLARE(const char *) ap_get_status_line(int status); +/** + * Return the Status-Line for a given status code (excluding the + * HTTP-Version field). If an invalid status code is passed, + * "500 Internal Server Error" will be returned, whereas an unknown + * status will be returned like "xxx Status xxx". + * @param p The pool to allocate from when status is unknown + * @param status The HTTP status code + * @return The Status-Line + */ +AP_DECLARE(const char *) ap_get_status_line_ex(apr_pool_t *p, int status); + /* Reading a block of data from the client connection (e.g., POST arg) */ /** |