Skip to content

Injectable Requesting Object #45

@i2h3

Description

@i2h3

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions