Roxen.git/
server/
base_server/
prototypes.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2003-04-22
2003-04-22 08:07:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>
24e914af0a2c6b12e959c73b1c663174cd9d9879 (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added RequestID()->get_xml_data().
Rev: server/base_server/prototypes.pike:1.58
5:
#include <config.h> #include <module.h> #include <module_constants.h>
-
constant cvs_version="$Id: prototypes.pike,v 1.
57
2003/
03
/
24
18
:07:
38
mast
Exp $";
+
constant cvs_version="$Id: prototypes.pike,v 1.
58
2003/
04
/
22
08
:07:
52
grubba
Exp $";
class Variable {
687:
static void create(Stdio.File fd, Protocol port, Configuration conf){} void send(string|object what, int|void len){}
+
static Parser.XML.Tree.Node xml_data; // XML data for the request.
+
+
Parser.XML.Tree.Node get_xml_data()
+
{
+
if (xml_data) return xml_data;
+
// FIXME: Probably ought to check that the content-type for
+
// the request is text/xml.
+
return xml_data = Parser.XML.Tree.parse_input(data, 0, 0, 0, 1);
+
}
+
static string cached_url_base; string url_base()