summaryrefslogtreecommitdiff
path: root/src/manager/lib/request.h
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2008-02-07 13:56:17 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2008-02-07 13:56:17 +0000
commitbcc8f7ca7fd8e8ff6e8a4d579251458313133598 (patch)
treea86b42b486c954937b32ffeaaa725804cb1458ec /src/manager/lib/request.h
parent49104abddf3d71d5abf5cf75dc7f95fa6c55fa63 (diff)
downloadvyos-strongswan-bcc8f7ca7fd8e8ff6e8a4d579251458313133598.tar.gz
vyos-strongswan-bcc8f7ca7fd8e8ff6e8a4d579251458313133598.zip
[svn-upgrade] Integrating new upstream version, strongswan (4.1.10)
Diffstat (limited to 'src/manager/lib/request.h')
-rw-r--r--src/manager/lib/request.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/manager/lib/request.h b/src/manager/lib/request.h
index e6fd71e71..f78741d37 100644
--- a/src/manager/lib/request.h
+++ b/src/manager/lib/request.h
@@ -75,9 +75,10 @@ struct request_t {
/**
* @brief Redirect the client to another location.
*
- * @param location location to redirect to
+ * @param fmt location format string
+ * @param ... variable argument for fmt
*/
- void (*redirect)(request_t *this, char *location);
+ void (*redirect)(request_t *this, char *fmt, ...);
/**
* @brief Set a template value.
@@ -106,11 +107,18 @@ struct request_t {
* other targets without to worry about path location.
*
* @param template clearsilver template file location
- * @return rendered template string
*/
void (*render)(request_t *this, char *template);
/**
+ * @brief Serve a request with headers and a body.
+ *
+ * @param headers HTTP headers, \n separated
+ * @param chunk body to write to output
+ */
+ void (*serve)(request_t *this, char *headers, chunk_t chunk);
+
+ /**
* @brief Destroy the request_t.
*/
void (*destroy) (request_t *this);