--- parser3/src/include/pa_request.h 2001/04/03 05:23:40 1.74 +++ parser3/src/include/pa_request.h 2001/04/15 12:32:59 1.82 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.h,v 1.74 2001/04/03 05:23:40 paf Exp $ + $Id: pa_request.h,v 1.82 2001/04/15 12:32:59 paf Exp $ */ #ifndef PA_REQUEST_H @@ -23,6 +23,7 @@ #include "pa_vrequest.h" #include "pa_vresponse.h" #include "pa_vcookie.h" +#include "pa_sql_driver_manager.h" #ifndef NO_STRING_ORIGIN # define COMPILE_PARAMS \ @@ -127,23 +128,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; - /// default base - VClass ROOT; + /// operators are methods of this class + VClass OP; /// $env:fields here VEnv env; /// $form:elements here @@ -155,14 +157,18 @@ public: /// $cookie: VCookie cookie; - /// $MAIN:MIME-TYPES - Table *mime_types; - /// contexts Value *self, *root, *rcontext; /// contexts WContext *wcontext; + /// connection + SQL_Connection *connection; + /// table of protocol's libraries. read from $SQL:drivers + Table *protocol2library; + /// mail options + Hash *mail; + private: // core data // classes @@ -196,6 +202,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) { @@ -209,7 +220,7 @@ private: // lang manipulation 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.