--- parser3/src/include/pa_request_info.h 2003/01/29 11:30:05 1.1.2.2 +++ parser3/src/include/pa_request_info.h 2003/07/24 11:31:21 1.2 @@ -1,52 +1,32 @@ /** @file Parser: request info class decl. - Copyright (c) 2001, 2003 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_INFO_H #define PA_REQUEST_INFO_H -static const char* IDENT_REQUEST_H="$Date: 2003/01/29 11:30:05 $"; +static const char* IDENT_REQUEST_INFO_H="$Date: 2003/07/24 11:31:21 $"; /// some information from web server class Request_info { public: //@{ these filled by Request class user - const char *document_root; - const char *path_translated; - const char *method; - const char *query_string; - const char *uri; - const char *content_type; + const char* document_root; + const char* path_translated; + const char* method; + const char* query_string; + const char* uri; + const char* content_type; size_t content_length; - const char *cookie; + const char* cookie; bool mail_received; //@} //@{ these are filed by Request class itself: user's post data - const char *post_data; size_t post_size; + const char* post_data; size_t post_size; //@} }; -class Request_charsets { - Pool& fpool; - Charset *fsource; - Charset *fclient; - Charset *fmail; -public: - Request_charsets(Pool& apool, - Charset& asource, - Charset& aclient, - Charset& amail): fpool(apool), - fsource(&asource), - fclient(&aclient), - fmail(&amail) {} - - Pool& pool() { return fpool; } - Charset& source() { return *fsource; } void set_source(Charset& asource) { fsource=&asource; } - Charset& client() { return *fclient; } void set_client(Charset& aclient) { fclient=&aclient; } - Charset& mail() { return *fmail; } void set_mail(Charset& amail) { fmail=&amail; } -}; - #endif