mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
http: Request.host
This commit is contained in:
parent
8ecad5abf8
commit
f1bc5e6d46
@ -17,6 +17,7 @@ pub mut:
|
||||
version Version = .v1_1
|
||||
method Method
|
||||
header Header
|
||||
host string
|
||||
cookies map[string]string
|
||||
data string
|
||||
url string
|
||||
@ -224,6 +225,7 @@ pub fn parse_request_head(mut reader io.BufferedReader) !Request {
|
||||
method: method
|
||||
url: target.str()
|
||||
header: header
|
||||
host: header.get(.host) or { '' }
|
||||
version: version
|
||||
cookies: request_cookies
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user