Swift的簡單同步HTTP客戶端:Requests

jopen 8年前發布 | 7K 次閱讀 Requests Apple Swift開發

Swift的簡單同步HTTP客戶端:Requests。

Usage

let response = try get("http://httpbin.org/get")

Missing Features

I wouldn't recommend using this for anything serious, it misses dozens of features and which I don't intend to add as my use-case is very limited. When considering the correct approach, this code probably takes a shortcut.

  • HTTPS (SSL/TLS)
  • IPv6
  • Dozens of other things

Pull requests are however very welcome if you are interested in adding any of these missing features or improving the general quality of the code.

項目主頁:http://www.baiduhome.net/lib/view/home/1450011028480

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!