Option

public enum Option : Sendable

Represents the supported cURL options that can be parsed from a command.

  • The URL to fetch.

    Declaration

    Swift

    case url(String)
  • The HTTP POST data (-d or --data).

    Declaration

    Swift

    case data(String)
  • The HTTP multipart POST data (-F or --form).

    Declaration

    Swift

    case form(_: String, _: String)
  • A custom HTTP header (-H or --header).

    Declaration

    Swift

    case header(_: String, _: String)
  • The referer URL (-e or --referer).

    Declaration

    Swift

    case referer(String)
  • The User-Agent string (-A or --user-agent).

    Declaration

    Swift

    case userAgent(String)
  • The server user and optional password (-u or --user).

    Declaration

    Swift

    case user(_: String, _: String?)
  • The HTTP request method (-X or --request).

    Declaration

    Swift

    case requestMethod(String)