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

version 1.78, 2001/04/06 10:32:18 version 1.89, 2001/05/17 15:20:15
Line 11 Line 11
 #ifndef PA_REQUEST_H  #ifndef PA_REQUEST_H
 #define PA_REQUEST_H  #define PA_REQUEST_H
   
   #include "pa_config_includes.h"
 #include "pa_pool.h"  #include "pa_pool.h"
 #include "pa_hash.h"  #include "pa_hash.h"
 #include "pa_wcontext.h"  #include "pa_wcontext.h"
Line 43 Line 44
 #endif  #endif
   
 class Temp_lang;  class Temp_lang;
   class Methoded;
   
 /// Main workhorse.  /// Main workhorse.
 class Request : public Pooled {  class Request : public Pooled {
Line 85  public: Line 87  public:
                 bool header_only);                  bool header_only);
   
         /// executes ops          /// executes ops
         void execute(const Array& ops);          void execute(const Array& ops); // execute.C
   
         /// 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(
Line 128  public: Line 130  public:
                 wcontext->write(avalue);                   wcontext->write(avalue); 
         }          }
   
         /// handy is-value-a-junction ensurer  
         void fail_if_junction_(bool is, Value& value,   
                 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 
         const String& relative(const char *apath, const String& relative_name);          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
         const String& absolute(const String& relative_name);          const String& absolute(const String& relative_name);
   
           /// returns the mime type of 'user_file_name_cstr'
           const String& mime_type_of(const char *user_file_name_cstr);
   
 public:  public:
                   
         /// info from web server          /// info from web server
         Info& info;          Info& info;
           /// user's post data
           char *post_data;  size_t post_size;
   
         /// operators are methods of this class          /// operators are methods of this class
         VClass OP;          Methoded& OP;
         /// $env:fields here          /// $env:fields
         VEnv env;          VEnv env;
         /// $form:elements here          /// $form:elements
         VForm form;          VForm form;
         /// $request:elements here          /// $request:elements
         VRequest request;          VRequest request;
         /// $response:          /// $response:elements
         VResponse response;          VResponse response;
         /// $cookie:          /// $cookie:elements
         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;
   
           /// 'MAIN' class conglomerat
           VStateless_class *main_class;
   
         /// connection          /// connection
         SQL_Connection *connection;          SQL_Connection *connection;
         /// table of protocol's libraries. read from $SQL:drivers          /// PCRE character tables
         Table *protocol2library;          unsigned char *pcre_tables;
   
           /// classes configured data
           Hash classes_conf;
   
   
 private: // core data  private: // core data
   
         // classes          /// classes
         Hash fclasses;          Hash fclasses;
   
         // already used files to avoid cyclic uses          /// already used files to avoid cyclic uses
         Hash used_files;          Hash used_files;
   
         // execution stack          /// execution stack
         Stack stack;          Stack stack;
   
           /**     endless execute(execute(... preventing counter 
                   @see ANTI_ENDLESS_EXECUTE_RECOURSION
           */
           uint anti_endless_execute_recoursion;
   
 private: // compile.C  private: // compile.C
   
         VStateless_class& real_compile(COMPILE_PARAMS);          VStateless_class& real_compile(COMPILE_PARAMS);
Line 202  private: // defaults Line 214  private: // defaults
         const String::Untaint_lang fdefault_lang;          const String::Untaint_lang fdefault_lang;
         Value *default_content_type;          Value *default_content_type;
   
   private: // mime types
   
           /// $MAIN:MIME-TYPES
           Table *mime_types;
   
 private: // lang manipulation  private: // lang manipulation
   
         String::Untaint_lang set_lang(String::Untaint_lang alang) {          String::Untaint_lang set_lang(String::Untaint_lang alang) {

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


E-mail: