[英]How to use "responseDecodable" method in Alamofire?
As you can read in the documentation , using responseDecodable
is straightforward:正如您在文档中所读到的,使用responseDecodable
很简单:
AF.request(...).responseDecodable(of: ResponseType.self) { response in
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.