Annotation of parser3/src/include/pa_request_info.h, revision 1.1.2.2
1.1.2.1 paf 1: /** @file
2: Parser: request info class decl.
3:
4: Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
6: */
7:
8: #ifndef PA_REQUEST_INFO_H
9: #define PA_REQUEST_INFO_H
10:
1.1.2.2 ! paf 11: static const char* IDENT_REQUEST_H="$Date: 2003/01/29 11:22:25 $";
1.1.2.1 paf 12:
13: /// some information from web server
14: class Request_info {
15: public:
16: //@{ these filled by Request class user
17: const char *document_root;
18: const char *path_translated;
19: const char *method;
20: const char *query_string;
21: const char *uri;
22: const char *content_type;
23: size_t content_length;
24: const char *cookie;
25: bool mail_received;
26: //@}
27: //@{ these are filed by Request class itself: user's post data
28: const char *post_data; size_t post_size;
29: //@}
30: };
31:
1.1.2.2 ! paf 32: class Request_charsets {
! 33: Pool& fpool;
! 34: Charset *fsource;
! 35: Charset *fclient;
! 36: Charset *fmail;
! 37: public:
! 38: Request_charsets(Pool& apool,
! 39: Charset& asource,
! 40: Charset& aclient,
! 41: Charset& amail): fpool(apool),
! 42: fsource(&asource),
! 43: fclient(&aclient),
! 44: fmail(&amail) {}
! 45:
! 46: Pool& pool() { return fpool; }
! 47: Charset& source() { return *fsource; } void set_source(Charset& asource) { fsource=&asource; }
! 48: Charset& client() { return *fclient; } void set_client(Charset& aclient) { fclient=&aclient; }
! 49: Charset& mail() { return *fmail; } void set_mail(Charset& amail) { fmail=&amail; }
1.1.2.1 paf 50: };
51:
52: #endif
E-mail: