我可以使用 ip 地址構建 Http 請求嗎?
我嘗試更改 url 字串:
var baseURL: URL {
return URL.init(string:("http://github.com/apple/swift"))!
}
到
var baseURL: URL {
return URL.init(string:("http://140.82.113.3/apple/swift"))!
}
但是,網路不作業:(
uj5u.com熱心網友回復:
var baseURL: URL = URL(string: "http://github.com/apple/swift")
試試這個 ?
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/381136.html
