Some suggested improvements #16

Merged
javier merged 6 commits from library/suggested-improvements into main 2025-10-02 01:51:17 +00:00
Showing only changes of commit 07cfa1e4e4 - Show all commits
@@ -25,12 +25,13 @@ public struct AmiiboLiveClient: Sendable {
// MARK: Initializers // MARK: Initializers
/// Initializes this client. /// Initializes this client.
public init() { /// - Parameter transport: A transport that performs HTTP operations.
public init(transport: any ClientTransport = URLSessionTransport()) {
self.client = .init( self.client = .init(
// The force unwrapping implemented below assumes that the server definition from the OpenAPI specification is correct. // The force unwrapping implemented below assumes that the server definition from the OpenAPI specification is correct.
serverURL: try! Servers.Server1.url(), serverURL: try! Servers.Server1.url(),
configuration: .init(dateTranscoder: ISOTimestampTranscoder()), configuration: .init(dateTranscoder: ISOTimestampTranscoder()),
transport: URLSessionTransport() transport: transport
) )
} }