--- parser3/src/include/pa_request.h 2002/11/20 13:37:23 1.158 +++ parser3/src/include/pa_request.h 2003/01/28 15:16:49 1.160.2.2 @@ -1,14 +1,14 @@ /** @file Parser: request class decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_REQUEST_H #define PA_REQUEST_H -static const char* IDENT_REQUEST_H="$Date: 2002/11/20 13:37:23 $"; +static const char* IDENT_REQUEST_H="$Date: 2003/01/28 15:16:49 $"; #include "pa_pool.h" #include "pa_hash.h" @@ -63,6 +63,8 @@ class Request : public Pooled { friend class Temp_request_self; public: + Pool& pool() { return fpool; } + #ifdef RESOURCES_DEBUG /// measures double sql_connect_time; @@ -83,7 +85,7 @@ public: bool mail_received; }; - Request(Pool& apool, + Request( Info& ainfo, uchar adefault_lang, ///< all tainted data default untainting lang bool status_allowed ///< status class allowed @@ -226,6 +228,9 @@ public: /// user's post data const char *post_data; size_t post_size; + /// source, client, mail charsets + Request_charsets charsets; + /// name of 'main' method const String main_method_name; @@ -253,6 +258,8 @@ public: private: + Pool fpool; + //@{ request processing status /// exception stack trace Stack exception_trace; @@ -351,7 +358,7 @@ private: // connection manipulation private: - void output_result(const VFile& body_file, bool header_only); + void output_result(const VFile& body_file, bool header_only, bool as_attachment); }; /// Auto-object used to save request context across ^try body