Open
Description
AsyncHTTPClient is currently dependent on Foundation. Would removing this dependency be a target for AHC?
I have done a quick test to see where Foundation is being used. The main source is unsurprisingly URL
. The other two are Date
/DateFormatter
which might be difficult to replace but are used in one very specific place (Cookie expiry dates) and Data
which is used in StreamWriter.data
and in Authorization.basic
where a string is converted to Data
to convert it to base64.
To still allow interface functions that use Foundation types they could be moved out to a AsyncHTTPClientFoundationCompat library à la swift-nio. The implementation of HTTPClient functions that take a URL could be moved there along with StreamWriter.data
.
Metadata
Metadata
Assignees
Labels
No labels