Annotation of parser3/src/include/pa_sapi.h, revision 1.1
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:
! 8: $Id: pa_globals.h,v 1.22 2001/03/23 10:14:33 paf Exp $
! 9: */
! 10:
! 11: #ifndef PA_SAPI_H
! 12: #define PA_SAPI_H
! 13:
! 14: #include "pa_pool.h"
! 15: #include "pa_types.h"
! 16:
! 17: /// target web-server api
! 18: struct SAPI {
! 19: /// get env
! 20: static const char *get_env(Pool& pool, const char *name);
! 21: /// read POST request bytes
! 22: static uint read_post(Pool& pool, char *buf, uint max_bytes);
! 23: /// add response header attribute
! 24: static void add_header_attribute(Pool& pool, const char *key, const char *value);
! 25: /// add response header attribute
! 26: static void send_header(Pool& pool);
! 27: /// output body bytes
! 28: static void send_body(Pool& pool, const char *buf, size_t size);
! 29: };
! 30:
! 31: #endif
E-mail: