Diff for /parser3/src/include/pa_sapi.h between versions 1.18 and 1.22.2.8.2.4

version 1.18, 2002/02/08 08:30:13 version 1.22.2.8.2.4, 2003/03/24 09:39:55
Line 1 Line 1
 /** @file  /** @file
         Parser: web server api interface object decl.          Parser: web server api interface object decl.
   
         Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
   
         $Id$  
 */  */
   
 #ifndef PA_SAPI_H  #ifndef PA_SAPI_H
 #define PA_SAPI_H  #define PA_SAPI_H
   
 #include "pa_pool.h"  static const char* IDENT_SAPI_H="$Date$";
   
   // includes
   
   
 #include "pa_types.h"  #include "pa_types.h"
   #include "pa_array.h"
   
 class Array;  // forwards
 class String;  class SAPI_Info;
 class Hash;  
   
 /// target web-Server API  /// target web-Server API
 struct SAPI {  struct SAPI {
         /// log error message          /// log error message
         static void log(Pool& pool, const char *fmt, ...);          static void log(SAPI_Info& info, const char* fmt, ...);
         /// log error message & die          /// log error message & exit
         static void die(const char *fmt, ...);          static void die(const char* fmt, ...);
           /// log error message & abort[write core]
           static void abort(const char* fmt, ...);
           /// environment strings
           static const char *const * environment(SAPI_Info& info);
         /// get environment string          /// get environment string
         static const char *get_env(Pool& pool, const char *name);          static char* get_env(SAPI_Info& info, const char* name);
         /// read POST request bytes          /// read POST request bytes
         static size_t read_post(Pool& pool, char *buf, size_t max_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]          /// add response header attribute [but do not send it to client]
         static void add_header_attribute(Pool& pool, 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          /// send collected header attributes to client
         static void send_header(Pool& pool);          static void send_header(SAPI_Info& info);
         /// output body bytes          /// output body bytes
         static void send_body(Pool& pool, const void *buf, size_t size);          static void send_body(SAPI_Info& info, const void *buf, size_t size);
 };  };
   
 #endif  #endif

Removed from v.1.18  
changed lines
  Added in v.1.22.2.8.2.4


E-mail: