--- parser3/src/include/pa_request.h 2001/04/06 10:32:18 1.78 +++ parser3/src/include/pa_request.h 2001/04/28 08:43:53 1.84 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.h,v 1.78 2001/04/06 10:32:18 paf Exp $ + $Id: pa_request.h,v 1.84 2001/04/28 08:43:53 paf Exp $ */ #ifndef PA_REQUEST_H @@ -43,6 +43,7 @@ #endif class Temp_lang; +class Methoded; /// Main workhorse. class Request : public Pooled { @@ -128,23 +129,24 @@ public: 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 const String& relative(const char *apath, const String& relative_name); /// returns an absolute @a path to relative @a 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: /// info from web server Info& info; + /// user's post data + char *post_data; size_t post_size; /// operators are methods of this class - VClass OP; + Methoded& OP; /// $env:fields here VEnv env; /// $form:elements here @@ -156,9 +158,6 @@ public: /// $cookie: VCookie cookie; - /// $MAIN:MIME-TYPES - Table *mime_types; - /// contexts Value *self, *root, *rcontext; /// contexts @@ -168,6 +167,10 @@ public: SQL_Connection *connection; /// table of protocol's libraries. read from $SQL:drivers Table *protocol2library; + /// mail options + Hash *mail; + /// PCRE character tables + unsigned char *pcre_tables; private: // core data @@ -202,6 +205,11 @@ private: // defaults const String::Untaint_lang fdefault_lang; Value *default_content_type; +private: // mime types + + /// $MAIN:MIME-TYPES + Table *mime_types; + private: // lang manipulation String::Untaint_lang set_lang(String::Untaint_lang alang) {