File:  [parser3project] / parser3 / src / include / pa_sapi.h
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sat Mar 24 14:30:57 2001 UTC (25 years, 3 months ago) by paf
Branches: MAIN
CVS tags: HEAD
nt error log experiments failed - cgi under iis got no access to log. registereventsource simply failed with 5(illegal call) code, while worked OK as standalone executable.
isapi: used HSE_APPEND_LOG_PARAMETER feature

/** @file
	Parser: web server api interface object decl.

	Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)

	Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)

	$Id: pa_sapi.h,v 1.2 2001/03/24 14:30:57 paf Exp $
*/

#ifndef PA_SAPI_H
#define PA_SAPI_H

#include "pa_pool.h"
#include "pa_types.h"

/// target web-server api
struct SAPI {
	/// get env
	static const char *get_env(Pool& pool, const char *name);
	/// read POST request bytes
	static uint read_post(Pool& pool, char *buf, uint max_bytes);
	/// add response header attribute
	static void add_header_attribute(Pool& pool, const char *key, const char *value);
	/// add response header attribute
	static void send_header(Pool& pool);
	/// output body bytes
	static void send_body(Pool& pool, const char *buf, size_t size);
	/// log error message
	static void log(Pool& pool, const char *fmt, ...);
};

#endif

E-mail: