Instance Method
withOptions(_:_:)
Runs
body with another client for the same application, set up with options.func withOptions<T>(_ options: LiveClientOptions, _ body: (any TestClient) async throws -> T) async throws -> T
Discussion
For a test that needs more than one kind of client against one running server - one that trusts the server’s certificate and one that doesn’t, say. The new client gets its own connections, so it never reuses one this client opened. In memory there are no connections to configure, and body is handed this client.