WWDC関連のイベントが落ち着いたと思ったらすっかり夏バテ気味のiOSチームのかっくん(@fromkk)です。 気温の変化も大きいので夏風邪などひかない様に気をつけましょうね。 最近はREST API等も増えて来て、サーバーに直接JSONをPOSTしたり、進んでるところはProtocol Buffer等を利用してサーバーとやりとりしているかと思いますが、 未だに旧来のGETやPOSTでクエリー文字列を利用する事もあるかと思います。 iOSでは何故かこの辺りの環境が整備されておらず、力技で解決してきた人も多いのでは無いでしょうか? これまで 例えば日本郵便を例にすると、 let pref: Int = 13 let url = URL(string: "http://www.post.japanpost.jp/cgi-zip/zipcode.php?pref=\(pref)")! // ge