HPNetwork Documentation Beta

Structure URLQuery​Items​Builder

public struct URLQueryItemsBuilder

Initializers

init(scheme:​host:​)

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

init(scheme:​host:​path:​query​Items:​)

internal init(scheme: String = "https", host: String, path: String, queryItems: [URLQueryItem])

Properties

scheme

let scheme: String

host

let host: String

path

let path: String

query​Items

let queryItems: [URLQueryItem]

Methods

adding​Path​Component(_:​)

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

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

public func addingQueryItem(_ item: String?, name: String) -> URLQueryItemsBuilder

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

public func addingQueryItem(_ item: Double, digits: Int, name: String) -> URLQueryItemsBuilder

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

public func addingQueryItem(_ items: [String?], name: String) -> URLQueryItemsBuilder

build()

public func build() -> URL?