Branch: Tag:

2003-04-22

2003-04-22 08:07:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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()