Elegant HTTP Networking in Swift
swift
networking
xcode
cocoapods
carthage
swift-package-manager
alamofire
request
response
urlsession
certificate-pinning
public-key-pinning
urlrequest
httpurlresponse
parameter-encoding
-
Updated
Jul 18, 2022 - Swift
I have a custom validator that parses the JSON response and tries to build an Error struct.
If it builds the error successfully, my validator will return with a
.failChain(responseError), but in my catch at the call site, the error is still embedded into aHTTPError, which makes the catch a bit convoluted: