Port of YYHRequest to Swift