Structure
URI.Scheme
A URI scheme, as defined by RFC 3986 § 3.1 and [RFC 7595].
struct Scheme
Topics
Initializers
init(String?)Designated initializer.init(from: any Decoder) throwsCreates a new instance by decoding from the given decoder.init(stringLiteral: String)Creates an instance initialized to the given string value.
Instance Properties
var description: StringA textual representation of this instance.let value: String?The string representation of the scheme.
Type Properties
static let http: URI.SchemeHyperText Transfer Protocol (HTTP)static let httpUnixDomainSocket: URI.SchemeHyperText Transfer Protocol (HTTP) over Unix Domain Sockets.static let https: URI.SchemeSecure HyperText Transfer Protocol (HTTPS)static let httpsUnixDomainSocket: URI.SchemeSecure HyperText Transfer Protocol (HTTPS) over Unix Domain Sockets.
Relationships
Conforms To
Swift.CustomStringConvertibleSwift.DecodableSwift.EncodableSwift.EquatableSwift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringInterpolationSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.HashableSwift.SendableSwift.SendableMetatype