Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2004-06-29
2004-06-29 10:57:59 by Martin Stjernholm <mast@lysator.liu.se>
e9811da7304dc0892632b8688300a994df3eafb6 (
12
lines) (+
9
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Added http_status_message to avoid including variables.h.
Rev: server/etc/modules/Roxen.pmod:1.182
1:
// This is a roxen pike module. Copyright © 1999 - 2001, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
181
2004/06/
25
16
:
22
:
07
anders
Exp $
+
// $Id: Roxen.pmod,v 1.
182
2004/06/
29
10
:
57
:
59
mast
Exp $
#include <roxen.h> #include <config.h>
297:
}
-
// --- From the old 'http' file ---------------------------------
-
+
mapping(string:mixed) http_low_answer( int status_code, string data ) //! Return a result mapping with the specified HTTP status code and //! data. @[data] is sent as the content of the response and is
497:
lt->hour, lt->min, lt->sec, c, tzh)); }
+
string http_status_message (int status_code)
+
//! Returns the standard message that corresponds to the given HTTP
+
//! status code.
+
{
+
return errors[status_code];
+
}
+
string http_date( mixed t ) //! Returns a http_date, as specified by the HTTP-protocol standard. //! This is used for logging as well as the Last-Modified and Time