HTTPClient

public protocol HTTPClient

Undocumented

  • Performs a network call with the given parameters.

    Declaration

    Swift

    func perform<T: Decodable>(request: HTTPRequest, completion: @escaping (_ result: Result<T>) -> Void)

    Parameters

    request

    HTTP request to load data.

    completion

    Result handler used when the network call is completed.