From 310f5363afe8ed31b6381ff002991d5c7cfa6d96 Mon Sep 17 00:00:00 2001 From: swhite Date: Tue, 13 Apr 2004 13:42:54 +0000 Subject: Made HTTPD to correctly describe interface by INCLUDE HEADER mechanism. Changed internal names of http_Auth.h http_Cookies.h http_Steer.h http_Content.h so that HTTPD thorn developers will be required to use this interface, rather than incorrectly explicitly including the source header files. * Protected SString against C++ name mangling * Gave exported functions the HTTP_ prefix * Wrote doc/Content.h * Fixed bug that disabled some steering functionality git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@192 1faa4e14-9dd3-4be0-9f0e-ffe519881164 --- src/Cookies.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/Cookies.h (limited to 'src/Cookies.h') diff --git a/src/Cookies.h b/src/Cookies.h new file mode 100644 index 0000000..2b6c43d --- /dev/null +++ b/src/Cookies.h @@ -0,0 +1,43 @@ + /*@@ + @header Cookies.h + @date Mon Sep 18 22:40:06 2000 + @author Tom Goodale + @desc + Functions to manipulate cookies. Was http_Cookies.h; still exported by + that name + @enddesc + @version $Header$ + @@*/ + +#ifndef __HTTP_COOKIES_H__ +#define __HTTP_COOKIES_H__ 1 + +#include "httpRequest.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +int HTTP_CookieSend(httpRequest *request, + const char *name, + const char *value, + const char *path, + const char *domain, + const char *expires, + int secure); + +int HTTP_CookieCancel(httpRequest *request, + const char *name, + const char *path); + +char *HTTP_CookieGet(httpRequest *request, + const char *name); + + +#ifdef __cplusplus +} +#endif + +#endif /* __HTTP_COOKIES_H__ */ + -- cgit v1.2.3