--- parser3/src/include/pa_sapi.h 2001/05/17 10:22:24 1.9 +++ parser3/src/include/pa_sapi.h 2001/09/26 10:32:25 1.13 @@ -2,10 +2,9 @@ Parser: web server api interface object decl. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_sapi.h,v 1.9 2001/05/17 10:22:24 parser Exp $ + $Id: pa_sapi.h,v 1.13 2001/09/26 10:32:25 parser Exp $ */ #ifndef PA_SAPI_H @@ -23,13 +22,13 @@ class Hash; struct SAPI { /// log error message static void log(Pool& pool, const char *fmt, ...); - /// + /// get environment string static const char *get_env(Pool& pool, const char *name); /// read POST request 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); - /// add response header attribute + /// send collected header attributes to client static void send_header(Pool& pool); /// output body bytes static void send_body(Pool& pool, const void *buf, size_t size);