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

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

E-mail: