Adopt AHC's .shared singleton as the default Client by czechboy0 · Pull Request #39 · swift-server/swift-openapi-async-http-client (original) (raw)

Motivation

As a convenience when you don't need to create a custom AHC Client instance, we provide a singleton client as the default. AHC added their own Client.shared singleton, so let's adopt that and remove the transport's internal singleton, which was used for the same purpose.

Modifications

Result

Test Plan

Unit tests still pass.