Diff for /parser3/src/include/pa_request.h between versions 1.65 and 1.78

version 1.65, 2001/03/21 14:06:43 version 1.78, 2001/04/06 10:32:18
Line 23 Line 23
 #include "pa_vrequest.h"  #include "pa_vrequest.h"
 #include "pa_vresponse.h"  #include "pa_vresponse.h"
 #include "pa_vcookie.h"  #include "pa_vcookie.h"
   #include "pa_sql_driver_manager.h"
   
 #ifndef NO_STRING_ORIGIN  #ifndef NO_STRING_ORIGIN
 #       define COMPILE_PARAMS  \  #       define COMPILE_PARAMS  \
Line 59  public: Line 60  public:
                 const char *content_type;                  const char *content_type;
                 size_t content_length;                  size_t content_length;
                 const char *cookie;                  const char *cookie;
                   const char *user_agent;
         };          };
                   
         Request(Pool& apool,          Request(Pool& apool,
Line 76  public: Line 78  public:
                 BEWARE: may throw exception to you: catch it!                  BEWARE: may throw exception to you: catch it!
         */          */
         void core(          void core(
                 const char *sys_auto_path1,                  const char *root_auto_path, ///< path to system auto.p file
                 const char *sys_auto_path2,                  bool root_auto_fail, ///< fail if system auto.p file not found
                   const char *site_auto_path, ///< path to site auto.p file
                   bool site_auto_fail, ///< fail if site auto.p file not found
                 bool header_only);                  bool header_only);
   
         /// executes ops          /// executes ops
Line 85  public: Line 89  public:
   
         /// compiles the file, maybe forcing it's class @a name and @a base_class.          /// compiles the file, maybe forcing it's class @a name and @a base_class.
         VStateless_class *use_file(          VStateless_class *use_file(
                 const char *file, bool fail_on_read_problem=true,                  const String& file_spec, bool fail_on_read_problem=true,
                 const String *name=0,                   const String *name=0, 
                 VStateless_class *base_class=0); // core.C                  VStateless_class *base_class=0); // core.C
         /// compiles a @a source buffer          /// compiles a @a source buffer
Line 101  public: Line 105  public:
   
         /// appending, sure of clean string inside          /// appending, sure of clean string inside
         void write_no_lang(const String& astring) {          void write_no_lang(const String& astring) {
                 wcontext->write(astring, String::UL_NO);                  wcontext->write(astring, String::UL_CLEAN);
         }          }
         /// appending string, passing language built into string being written          /// appending string, passing language built into string being written
         void write_pass_lang(const String& astring) {          void write_pass_lang(const String& astring) {
Line 117  public: Line 121  public:
         }          }
         /// appending sure value, that would be converted to clean string          /// appending sure value, that would be converted to clean string
         void write_no_lang(Value& avalue) {          void write_no_lang(Value& avalue) {
                 wcontext->write(avalue, String::UL_NO);                  wcontext->write(avalue, String::UL_CLEAN);
         }          }
         /// appending sure value, not VString          /// appending sure value, not VString
         void write_expr_result(Value& avalue) {          void write_expr_result(Value& avalue) {
Line 129  public: Line 133  public:
                 const String& method_name, const char *msg);                  const String& method_name, const char *msg);
   
         /// returns relative to @a path  path to @a file           /// returns relative to @a path  path to @a file 
         char *relative(const char *path, const char *file);          const String& relative(const char *apath, const String& relative_name);
   
         /// returns an absolute @a path to relative @a name          /// returns an absolute @a path to relative @a name
         char *absolute(const char *name);          const String& absolute(const String& relative_name);
   
 public:  public:
                   
         /// info from web server          /// info from web server
         Info& info;          Info& info;
   
         /// default base          /// operators are methods of this class
         VClass ROOT;          VClass OP;
         /// $env:fields here          /// $env:fields here
         VEnv env;          VEnv env;
         /// $form:elements here          /// $form:elements here
Line 152  public: Line 156  public:
         /// $cookie:          /// $cookie:
         VCookie cookie;          VCookie cookie;
   
           /// $MAIN:MIME-TYPES
           Table *mime_types;
   
         /// contexts          /// contexts
         Value *self, *root, *rcontext;          Value *self, *root, *rcontext;
         /// contexts          /// contexts
         WContext *wcontext;          WContext *wcontext;
   
           /// connection
           SQL_Connection *connection;
           /// table of protocol's libraries. read from $SQL:drivers
           Table *protocol2library;
   
 private: // core data  private: // core data
   
         // classes          // classes
         Hash fclasses;          Hash fclasses;
   
           // already used files to avoid cyclic uses
           Hash used_files;
   
         // execution stack          // execution stack
         Stack stack;          Stack stack;
   
Line 185  private: // lang&raw Line 200  private: // lang&raw
 private: // defaults  private: // defaults
   
         const String::Untaint_lang fdefault_lang;          const String::Untaint_lang fdefault_lang;
         Value *fdefault_content_type;          Value *default_content_type;
   
 private: // lang manipulation  private: // lang manipulation
   
Line 200  private: // lang manipulation Line 215  private: // lang manipulation
   
 private:  private:
   
         void output_result(const String& body_string, bool header_only);          void output_result(const VFile& body_file, bool header_only);
 };  };
   
 ///     Auto-object used for temporary changing Request::flang.  ///     Auto-object used for temporary changing Request::flang.

Removed from v.1.65  
changed lines
  Added in v.1.78


E-mail: