--- parser3/src/include/pa_request_info.h 2024/11/04 03:53:25 1.19 +++ parser3/src/include/pa_request_info.h 2026/09/30 17:42:38 1.22 @@ -1,14 +1,14 @@ /** @file Parser: request info class decl. - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ #ifndef PA_REQUEST_INFO_H #define PA_REQUEST_INFO_H -#define IDENT_PA_REQUEST_INFO_H "$Id: pa_request_info.h,v 1.19 2024/11/04 03:53:25 moko Exp $" +#define IDENT_PA_REQUEST_INFO_H "$Id: pa_request_info.h,v 1.22 2026/09/30 17:42:38 moko Exp $" // include @@ -19,7 +19,8 @@ class Request_info { public: //@{ these filled by Request class user const char* document_root; - const char* path_translated; + const char* document_root_path; // '/'-normalized, without the trailing '/' + const char* path_translated; // '/'-normalized disk path of the requested file const char* method; const char* query_string; const char* uri; @@ -59,6 +60,8 @@ public: return auri; } + void set_document_root(const char* adocument_root); + Request_info() { memset(this, 0, sizeof(*this)); // OK as Request_info is POD }