Removed the "request(endpoint: )" function from the Client public protocol.

This commit is contained in:
Javier Cicchelli 2023-04-19 00:16:05 +02:00
parent 6e785b4255
commit 9ee4afc69d

View File

@ -27,9 +27,4 @@ public protocol Client {
as model: Model.Type as model: Model.Type
) async throws -> Model ) async throws -> Model
/// Makes a request to a remote location based on a given endpoint and expects to return an original, uncasted response.
/// - Parameter endpoint: The endpoint for which to make a remote call.
/// - Returns: An original data response from a call to a remote endpoint.
@discardableResult func request(endpoint: some Endpoint) async throws -> Data
} }