mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: referer()
This commit is contained in:
@ -420,3 +420,7 @@ fn (req &Request) http_do(port int, method, host_name, path string) ?Response {
|
||||
}
|
||||
return parse_response(sb.str())
|
||||
}
|
||||
|
||||
pub fn (req &Request) referer() string {
|
||||
return req.headers['Referer']
|
||||
}
|
||||
|
Reference in New Issue
Block a user