Situation
Right now, the management of a Requesting (actually a URLSession) object is handled internally.
Problem
Downstream projects might want to reuse the same Requesting object for their own network requests, so no parallel network stacks are maintained.
Goal
Make the Requesting object an optional initializer argument of Server with a default value of URLSession(configuration: .ephemeral).
This already happens internally in the existing initializers. It just needs to be exposed so downstream projects can optionally create their own URLSession and inject it.
Situation
Right now, the management of a
Requesting(actually aURLSession) object is handled internally.Problem
Downstream projects might want to reuse the same
Requestingobject for their own network requests, so no parallel network stacks are maintained.Goal
Make the
Requestingobject an optional initializer argument ofServerwith a default value ofURLSession(configuration: .ephemeral).This already happens internally in the existing initializers. It just needs to be exposed so downstream projects can optionally create their own
URLSessionand inject it.