The URL Loading System (URLSession and friends) in swift-corelibs-foundation needs authentication support. The following is a design proposal to plug an authentication in the existing URLSession architecture. The design may or may not bear resemblance to the authentication on Foundation or Darwin. The sole goal is to make sure that behaviour on Linux completely matches that on Darwin.
A URL loading system without authentication support is of meagre value in these times of "secure engineering". Though we've been fairly successful with incremental improvements in URLSession, it does need a few significant augmentations. Authentication support is one of them. In my experience on URLSession use cases on Linux, I have come across a very limited number of scenarios using Basic HTTP authentication with a fixe