Vapor Documentation

Structure URI

public struct URI: ExpressibleByStringInterpolation, CustomStringConvertible  
%533 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

public var string: String

description

public var description: String  

scheme

public var scheme: String?  

host

public var host: String?  

port

public var port: Int?  

path

public var path: String  

query

public var query: String?  

fragment

public var fragment: String?