Initializervapor 4.114.1Vapor
init(from:)
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Scheme
A URI scheme, as defined by RFC 3986 § 3.1 and [RFC 7595].
struct URI
A type for constructing and manipulating (most) Uniform Resource Indicators.
protocol Decoder
A type that can decode values from a native format into in-memory representations.
init(_ value: String? = nil)
Designated initializer.
init(stringLiteral value: String)
static let http: Self
HyperText Transfer Protocol (HTTP)
static let httpUnixDomainSocket: Self
HyperText Transfer Protocol (HTTP) over Unix Domain Sockets.
static let https: Self
Secure HyperText Transfer Protocol (HTTPS)
static let httpsUnixDomainSocket: Self
Secure HyperText Transfer Protocol (HTTPS) over Unix Domain Sockets.
var description: String { get }
let value: String?
The string representation of the scheme.