Diff for /parser3/src/include/pa_sapi.h between versions 1.7 and 1.19

version 1.7, 2001/04/09 15:48:56 version 1.19, 2002/06/11 12:20:42
Line 1 Line 1
 /** @file  /** @file
         Parser: web server api interface object decl.          Parser: web server api interface object decl.
   
         Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
           Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
         Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)  
   
         $Id$          $Id$
 */  */
Line 22  class Hash; Line 21  class Hash;
 struct SAPI {  struct SAPI {
         /// log error message          /// log error message
         static void log(Pool& pool, const char *fmt, ...);          static void log(Pool& pool, const char *fmt, ...);
         ///           /// log error message & die
           static void die(const char *fmt, ...);
           /// environment strings
           static const char *const *environment(Pool& pool);
           /// get environment string
         static const char *get_env(Pool& pool, const char *name);          static const char *get_env(Pool& pool, 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(Pool& pool, char *buf, size_t max_bytes);
         /// add response header attribute          /// 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(Pool& pool, const char *key, const char *value);
         /// add response header attribute          /// send collected header attributes to client
         static void send_header(Pool& pool);          static void send_header(Pool& pool);
         /// output body bytes          /// output body bytes
         static void send_body(Pool& pool, const void *buf, size_t size);          static void send_body(Pool& pool, const void *buf, size_t size);
         /// @return exit_status  
         static int execute(Pool& pool,  
                 const String& file_spec,   
                 const Hash *env,  
                 const Array *argv,  
                 const String& in, String& out, String& err);  
 };  };
   
 #endif  #endif

Removed from v.1.7  
changed lines
  Added in v.1.19


E-mail: