Add a getter for the HTTP referer

This commit is contained in:
Martin Willi
2010-03-10 15:09:12 +01:00
parent d12ad4748a
commit a3920abb76
2 changed files with 16 additions and 0 deletions
+7
View File
@@ -105,6 +105,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.
*/