--- parser3/src/include/pa_request.h 2001/03/18 11:37:51 1.57 +++ parser3/src/include/pa_request.h 2001/03/18 20:31:25 1.60 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_request.h,v 1.57 2001/03/18 11:37:51 paf Exp $ + $Id: pa_request.h,v 1.60 2001/03/18 20:31:25 paf Exp $ */ #ifndef PA_REQUEST_H @@ -20,6 +20,7 @@ #include "pa_vform.h" #include "pa_vrequest.h" #include "pa_vresponse.h" +#include "pa_vcookie.h" #ifndef NO_STRING_ORIGIN # define COMPILE_PARAMS \ @@ -52,11 +53,12 @@ public: const char *uri; const char *content_type; size_t content_length; + const char *cookie; }; Request(Pool& apool, Info& ainfo, - String::Untaint_lang alang + String::Untaint_lang adefault_lang ); ~Request() {} @@ -91,6 +93,10 @@ public: void write_no_lang(String& astring) { wcontext->write(astring, String::Untaint_lang::NO); } + // appending string, passing language built into string being written + void write_pass_lang(String& astring) { + wcontext->write(astring, String::Untaint_lang::PASS_APPENDED); + } // appending possible string, assigning untaint language void write_assign_lang(Value& avalue) { wcontext->write(avalue, flang); @@ -128,6 +134,8 @@ public: VRequest request; // $response: VResponse response; + // $cookie: + VCookie cookie; // contexts Value *self, *root, *rcontext; @@ -158,6 +166,11 @@ private: // lang&raw String::Untaint_lang flang; +private: // defaults + + const String::Untaint_lang fdefault_lang; + Value *fdefault_content_type; + private: // lang manipulation String::Untaint_lang set_lang(String::Untaint_lang alang) { @@ -169,6 +182,9 @@ private: // lang manipulation flang=alang; } +private: + + void output_result(const String& body_string); }; class Temp_lang {