apple / swift-openapi-urlsession

URLSession transport for Swift OpenAPI Generator.
https://swiftpackageindex.com/apple/swift-openapi-urlsession/documentation
Apache License 2.0
160 stars 29 forks source link

Add a missing protocol conformance to ClientTransport #4

Closed czechboy0 closed 1 year ago

czechboy0 commented 1 year ago

Motivation

We lost URLSessionTransport's conformance to ClientTransport along the way somewhere. But that's kind of its main job :)

Modifications

Re-add the conformance.

Result

Now the transport can be used as a ClientTransport again.

Test Plan

Explicitly cast the test transport to be a ClientTransport, rather than using the concrete type.