以 json 格式查看 Alamofire POST http 正文

View the Alamofire POST http body as json

提问人:Ivan C Myrvold 提问时间:11/3/2023 更新时间:11/3/2023 访问量:29

问:

我需要打印 Alamofire 使用编码器在参数字段中编码的 http POST 或 PUT json 正文。有谁知道如何在 Swift 中做到这一点?JSONEncoding.default

Swift Xcode 阿拉莫火

评论

1赞 Larme 11/3/2023
在每个请求上?您可以使用并打印它。或者使用并打印它(因为它也应该出现在那里)。InterceptorcURLDescription
0赞 Ivan C Myrvold 11/3/2023
谢谢!cURLDescription 效果很好

答: 暂无答案