Closed rebello95 closed 9 months ago
These were changed from CFNetworkErrors to hardcoded values in https://github.com/connectrpc/connect-swift/pull/227 to remove the CFNetwork import in order to support watchOS.
CFNetworkErrors
CFNetwork
As an alternative, we can use URLError values and keep them strongly typed. The replacements are the same except for CFNetworkErrors.cfurlErrorUnknown.rawValue which will still be correctly mapped to .unknown via the ...100 case.
URLError
CFNetworkErrors.cfurlErrorUnknown.rawValue
.unknown
...100
These were changed from
CFNetworkErrors
to hardcoded values in https://github.com/connectrpc/connect-swift/pull/227 to remove theCFNetwork
import in order to support watchOS.As an alternative, we can use
URLError
values and keep them strongly typed. The replacements are the same except forCFNetworkErrors.cfurlErrorUnknown.rawValue
which will still be correctly mapped to.unknown
via the...100
case.