Soto HTTP Client protocol

Is anyone using Soto with another HTTP client than the default one AsyncHTTPClient?

Soto uses a protocol AWSHTTPClient to define the requirements for an HTTP client to be used with the package. It conforms the swift server AsyncHTTPClient to AWSHTTPClient and then this is used by default. But this leaves it open for users to use their own HTTP client as long as they conformed to the above protocol.

Having this protocol limits any extension I can make to the interface between Soto and the HTTP client without creating a breaking change. If AWSHTTPClientl was made internal and it was assumed AsyncHTTPClient was the only HTTP client available would this affect anyone?

1 Like
Terms of Service

Privacy Policy

Cookie Policy