MultipartFormValue
public enum MultipartFormValue
extension MultipartFormValue: ExpressibleByStringLiteral
extension MultipartFormValue: ExpressibleByStringInterpolation
A multipart form value of either a string (Text
) or a file (a Variable
‘s contents).
-
A textual form value.
Declaration
Swift
case string(Text)
-
A variable form value.
Declaration
Swift
case file(Variable)
-
Creates an instance initialized to the given string value.
Attention
Do not call this initializer directly. Instead, initialize a variable or constant using a string literal.
Declaration
Swift
public init(stringLiteral value: String)
Parameters
value
The value of the new instance.
-
Creates an instance from a string interpolation.
Attention
Do not call this initializer directly. Instead, initialize a variable or constant using an interpolated string literal.
Declaration
Swift
public init(stringInterpolation: Text.StringInterpolation)
Parameters
stringInterpolation
An instance of
StringInterpolation
which has had each segment of the string literal appended to it.