Structures

The following structures are available globally.

  • CURL converts a cURL command string into a URLRequest object. 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:

    try CURL("https://httpbin.org/json").run { data, response, error in ... }
    
    See more

    Declaration

    Swift

    public struct CURL : Sendable