aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfast/request.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-03-09 15:03:57 +0100
committerMartin Willi <martin@revosec.ch>2010-03-10 15:09:12 +0100
commita3920abb76707df5b743a687692c703729a313d8 (patch)
tree37546458625bc26790d262b6a359431810aa1fc7 /src/libfast/request.h
parentd12ad4748a01cd17834e32081d3893bd97eef2b2 (diff)
downloadstrongswan-a3920abb76707df5b743a687692c703729a313d8.tar.bz2
strongswan-a3920abb76707df5b743a687692c703729a313d8.tar.xz
Add a getter for the HTTP referer
Diffstat (limited to 'src/libfast/request.h')
-rw-r--r--src/libfast/request.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libfast/request.h b/src/libfast/request.h
index 61e2d59f0..dd3b568a4 100644
--- a/src/libfast/request.h
+++ b/src/libfast/request.h
@@ -106,6 +106,13 @@ struct request_t {
void (*redirect)(request_t *this, char *fmt, ...);
/**
+ * Get the HTTP referer.
+ *
+ * @return HTTP referer
+ */
+ char* (*get_referer)(request_t *this);
+
+ /**
* Redirect the client to the referer.
*/
void (*to_referer)(request_t *this);