1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

http: referer()

This commit is contained in:
Alexander Medvednikov
2020-07-07 14:37:43 +02:00
parent dc24327b1e
commit 4d7d1eb0c4
2 changed files with 10 additions and 10 deletions

View File

@ -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']
}