Networking
A class responsible for making network requests.
Declaration
class Networking
Topics
Instance Properties
var parameters: NetworkingParametersProtocol
Instance Methods
func get(url: URL, headers: [String : String]) async throws -> (Data, URLResponse)
Fetches data from the specified URL using the GET method.
func post(url: URL, headers: [String : String], body: Data?) async throws -> (Data, URLResponse)
Posts data to the specified URL using the POST method.
func put(url: URL, body: Data, headers: [String : String]) async throws -> (Data, URLResponse)
Sends data to the specified URL using the PUT method.