1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Greg Stein
2000-07-04 00:28:25 +00:00
parent 6dcafac17f
commit d02f5c7aba
3 changed files with 17 additions and 3 deletions

View File

@@ -1466,6 +1466,11 @@ API_EXPORT(int) ap_index_of_response(int status)
return LEVEL_500; /* 600 or above is also illegal */
}
API_EXPORT(const char *) ap_get_status_line(int status)
{
return status_lines[ap_index_of_response(status)];
}
/* Send a single HTTP header field to the client. Note that this function
* is used in calls to table_do(), so their interfaces are co-dependent.
* In other words, don't change this one without checking table_do in alloc.c.