Structures
The following structures are available globally.
-
CURLconverts a cURL command string into aURLRequestobject. This makes it easier to build HTTP clients for iOS, macOS, or tvOS applications using example cURL commands.For example, if you want to fetch a JSON file from httpbin.org, you can do so with a single line of Swift code:
See moretry CURL("https://httpbin.org/json").run { data, response, error in ... }Declaration
Swift
public struct CURL : Sendable
Structures Reference