--- parser3/src/include/pa_sapi.h 2003/01/29 09:16:15 1.22.2.2 +++ parser3/src/include/pa_sapi.h 2003/02/14 17:28:19 1.22.2.6 @@ -1,38 +1,39 @@ /** @file Parser: web server api interface object 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_SAPI_H #define PA_SAPI_H -static const char* IDENT_SAPI_H="$Date: 2003/01/29 09:16:15 $"; +static const char* IDENT_SAPI_H="$Date: 2003/02/14 17:28:19 $"; // includes #include "pa_pool.h" #include "pa_types.h" +#include "pa_array.h" // forwards - class SAPI_Info; /// target web-Server API struct SAPI { /// log error message - static void log(SAPI_Info& info, const char *fmt, ...); + static void log(SAPI_Info& info, const char* fmt, ...); /// log error message & die - static void die(const char *fmt, ...); + static void die(const char* fmt, ...); /// environment strings - static const char *const *environment(SAPI_Info& info); + static const char* const *environment(SAPI_Info& info, Pool& pool); /// get environment string - static const char *get_env(SAPI_Info& info, const char *name); + static CharPtr get_env(SAPI_Info& info, const char* name); /// read POST request bytes static size_t read_post(SAPI_Info& info, char *buf, size_t max_bytes); /// add response header attribute [but do not send it to client] - static void add_header_attribute(SAPI_Info& info, const char *key, const char *value); + static void add_header_attribute(SAPI_Info& info, + const char* dont_store_key, const char* dont_store_value); /// send collected header attributes to client static void send_header(SAPI_Info& info); /// output body bytes