diff options
author | Martin Willi <martin@strongswan.org> | 2007-10-19 19:40:53 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-10-19 19:40:53 +0000 |
commit | 0e0e7d5b712e6839e1ee930d9cad27bf16d6fce1 (patch) | |
tree | 6bf8555861a5d2763ab1b68d65d5e44b5447100c /src/manager/lib/request.h | |
parent | b82e823141dcf0992eace4c6da6008872516ca42 (diff) | |
download | strongswan-0e0e7d5b712e6839e1ee930d9cad27bf16d6fce1.tar.bz2 strongswan-0e0e7d5b712e6839e1ee930d9cad27bf16d6fce1.tar.xz |
request_t.redirect takes variable argument list
request_t.serve to serve non-template data
fixed dispatcher thread locking code
Diffstat (limited to 'src/manager/lib/request.h')
-rw-r--r-- | src/manager/lib/request.h | 14 |
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); |