Ready to implement the cache lib.

This commit is contained in:
zicla
2018-11-28 21:02:06 +08:00
parent a2a35ed4d2
commit 7d8db0a518
8 changed files with 435 additions and 69 deletions

View File

@ -24,3 +24,10 @@ func GetIpAddress(r *http.Request) string {
}
return ipAddress
}
//根据一个请求获取host
func GetHostFromRequest(r *http.Request) string {
return r.Host
}