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 (
-dor--data).Declaration
Swift
case data(String) -
The HTTP multipart POST data (
-For--form).Declaration
Swift
case form(_: String, _: String) -
A custom HTTP header (
-Hor--header).Declaration
Swift
case header(_: String, _: String) -
The referer URL (
-eor--referer).Declaration
Swift
case referer(String) -
The User-Agent string (
-Aor--user-agent).Declaration
Swift
case userAgent(String) -
The server user and optional password (
-uor--user).Declaration
Swift
case user(_: String, _: String?) -
The HTTP request method (
-Xor--request).Declaration
Swift
case requestMethod(String)