Vapor Documentation Beta

Structure URI

public struct URI: ExpressibleByStringInterpolation, CustomStringConvertible
%3 URI URI ExpressibleByStringInterpolation ExpressibleByStringInterpolation URI->ExpressibleByStringInterpolation CustomStringConvertible CustomStringConvertible URI->CustomStringConvertible

Nested Types

URI.Scheme

A URI's scheme.

Conforms To

CustomStringConvertible
ExpressibleByStringInterpolation

Initializers

init(string:​)

public init(string: String = "/")

init(scheme:​host:​port:​path:​query:​fragment:​)

public init(scheme: String?, host: String? = nil, port: Int? = nil, path: String, query: String? = nil, fragment: String? = nil)

init(scheme:​host:​port:​path:​query:​fragment:​)

public init(scheme: Scheme = Scheme(), host: String? = nil, port: Int? = nil, path: String, query: String? = nil, fragment: String? = nil)

init(string​Literal:​)

public init(stringLiteral value: String)

Properties

string

var string: String

description

var description: String

scheme

var scheme: String?

host

var host: String?

port

var port: Int?

path

var path: String

query

var query: String?

fragment

var fragment: String?