HPNetwork Documentation Beta

Structure URLBuilder

public struct URLBuilder 

Initializers

init(scheme:​host:​)

public init(scheme: String = "https", host: String) 

Methods

adding​Path​Component(_:​)

public func addingPathComponent(_ component: String?) -> URLBuilder 

adding​Query​Item(name:​value:​digits:​)

public func addingQueryItem(name: String, value: Double?, digits: Int = 2) -> URLBuilder 

adding​Query​Item(name:​value:​)

public func addingQueryItem(name: String, value: [QueryStringConvertible?]?) -> URLBuilder 

adding​Query​Item(name:​value:​)

public func addingQueryItem(name: String, value: QueryStringConvertible?) -> URLBuilder 

build()

public func build() -> URL?