Annotation of parser3/src/include/pa_sapi.h, revision 1.22.2.1

1.1       paf         1: /** @file
                      2:        Parser: web server api interface object decl.
                      3: 
1.22      paf         4:        Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
1.18      paf         5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1       paf         6: */
                      7: 
                      8: #ifndef PA_SAPI_H
                      9: #define PA_SAPI_H
1.20      paf        10: 
1.22.2.1! paf        11: static const char* IDENT_SAPI_H="$Date: 2003/01/21 15:51:11 $";
1.1       paf        12: 
                     13: #include "pa_pool.h"
                     14: #include "pa_types.h"
                     15: 
1.22.2.1! paf        16: class SAPI_Info;
1.5       paf        17: 
1.4       paf        18: /// target web-Server API
1.1       paf        19: struct SAPI {
1.5       paf        20:        /// log error message
1.22.2.1! paf        21:        static void log(SAPI_Info& info, const char *fmt, ...);
1.14      parser     22:        /// log error message & die
                     23:        static void die(const char *fmt, ...);
1.19      paf        24:        /// environment strings
1.22.2.1! paf        25:        static const char *const *environment(SAPI_Info& info);
1.12      parser     26:        /// get environment string
1.22.2.1! paf        27:        static const char *get_env(SAPI_Info& info, const char *name);
1.1       paf        28:        /// read POST request bytes
1.22.2.1! paf        29:        static size_t read_post(SAPI_Info& info, char *buf, size_t max_bytes);
1.12      parser     30:        /// add response header attribute [but do not send it to client]
1.22.2.1! paf        31:        static void add_header_attribute(SAPI_Info& info, const char *key, const char *value);
1.12      parser     32:        /// send collected header attributes to client
1.22.2.1! paf        33:        static void send_header(SAPI_Info& info);
1.1       paf        34:        /// output body bytes
1.22.2.1! paf        35:        static void send_body(SAPI_Info& info, const void *buf, size_t size);
1.1       paf        36: };
                     37: 
                     38: #endif

E-mail: