Initializervapor 4.114.1Vapor
init(stringLiteral:)
URI.swift:288init(stringLiteral value: String)
init(stringLiteral value: String)
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.
@frozen struct String
A Unicode string value that is a collection of characters.
init(_ value: String? = nil)
Designated initializer.
init(from decoder: any Decoder) throws
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.