--- parser3/src/include/pa_request.h 2002/06/20 14:50:22 1.139 +++ parser3/src/include/pa_request.h 2002/08/15 10:13:19 1.145 @@ -3,13 +3,13 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: pa_request.h,v 1.139 2002/06/20 14:50:22 paf Exp $ */ #ifndef PA_REQUEST_H #define PA_REQUEST_H +static const char* IDENT_REQUEST_H="$Date: 2002/08/15 10:13:19 $"; + #include "pa_pool.h" #include "pa_hash.h" #include "pa_wcontext.h" @@ -20,6 +20,7 @@ #include "pa_venv.h" #include "pa_vstatus.h" #include "pa_vform.h" +#include "pa_vmail.h" #include "pa_vmath.h" #include "pa_vrequest.h" #include "pa_vresponse.h" @@ -81,6 +82,7 @@ public: const char *content_type; size_t content_length; const char *cookie; + bool mail_received; }; Request(Pool& apool, @@ -217,7 +219,7 @@ public: } bool origins_mode() { - return main_class->get_element(*origins_mode_name)!=0; // $ORIGINS mode + return main_class->get_element(*origins_mode_name, main_class, false)!=0; // $ORIGINS mode } public: @@ -225,7 +227,7 @@ public: /// info from web server Info& info; /// user's post data - char *post_data; size_t post_size; + const char *post_data; size_t post_size; /// name of 'main' method const String main_method_name; @@ -238,6 +240,8 @@ public: VStatus status; /// $form:elements VForm form; + /// $mail + VMail mail; /// $math:constants VMath math; /// $request:elements