Add a getter for the HTTP referer
[strongswan.git] / src / libfast / request.h
index 61e2d59..dd3b568 100644 (file)
@@ -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);