Structures

The following structures are available globally.

  • CURL converts a line of curl command into a URLRequest object. It helps you to create HTTP clients for your iOS/macOS/tvOS apps easier once you have a example curl command.

    For example. if you want to fetch a file in JSON format from httpbin.org, you can use only one line of Swift code:

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

    Declaration

    Swift

    public struct CURL