String
struct String
-
Returns a version of the receiver wherein characters not allowed in the path component of a URL are escaped with percent encoding.
Declaration
Swift
public var urlPathEncoded: String -
Returns a version of the receiver in UTF-8 encoded
Datawherein characters not allowed in the path component of a URL are escaped with percent encoding.Declaration
Swift
public var urlPathEncodedData: Data -
Returns a version of the receiver wherein characters not allowed in the query string of a URL are escaped with percent encoding.
Declaration
Swift
public var urlQueryEncoded: String -
Returns a version of the receiver in UTF-8 encoded
Datawherein characters not allowed in the query string of a URL are escaped with percent encoding.Declaration
Swift
public var urlQueryEncodedData: Data -
Returns a version of the receiver wherein characters that are not valid in HTTP form values are escaped with percent encoding. This format is typically used with the
application/x-www-form-urlencodedMIME type.Declaration
Swift
public var urlFormEncoded: String -
Returns a version of the receiver in UTF-8 encoded
Datawherein characters that are not valid in HTTP form values are escaped with percent encoding. This format is typically used with theapplication/x-www-form-urlencodedMIME type.Declaration
Swift
public var urlFormEncodedData: Data -
Returns a version of the receiver in UTF-8 encoded
Data.Declaration
Swift
public var utf8Data: Data
View on GitHub
String Extension Reference