Structures
The following structures are available globally.
-
CURL
converts a line of curl command into aURLRequest
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:
See moretry URL("https://httpbin.org/json").run { data, response, error in ... }
Declaration
Swift
public struct CURL