Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 alamofire 中添加两个自定义动词“声明”和“绑定”?
Alamofire 将在即将到来的更新中支持完全自定义的 HTTP 方法(5.0.0 beta 7 之后的版本)。在此之前,手动构建您URLRequest的 s 将允许您直接设置方法,作为String. 此外,方法是区分大小写的,所以要小心。
URLRequest
String
request.httpMethod = "claim"