Can I build Http Request with ip address?
I try change url string:
var baseURL: URL {
return URL.init(string:("http://github.com/apple/swift"))!
}
to
var baseURL: URL {
return URL.init(string:("http://140.82.113.3/apple/swift"))!
}
But, Network not working:(
var baseURL: URL = URL(string: "http://github.com/apple/swift")
try this?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.