A single name-value pair from the query portion of a URL.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 6.0.1+
Framework
- Foundation
Declaration
struct URLQueryItem
A single name-value pair from the query portion of a URL.
SDKs
Framework
struct URLQueryItem
var name: String
The name of the query item.
var value: String?
The value for the query item.
static func != (URLQuery Item, URLQuery Item) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func == (URLQuery Item, URLQuery Item) -> Bool
Indicates whether two query item instances are the same.
var description: String
A textual description of the query item.
var debug Description: String
A textual description of the query item suitable for debugging.
var custom Mirror: Mirror
A mirror that reflects the query item.
var hash Value: Int
The computed hash value for the query item.
class NSURLQuery Item
An object representing a single name/value pair for an item in the query portion of a URL that bridges to URLQuery
; use NSURLQuery
when you need reference semantics or other Foundation-specific behavior.
typealias URLQuery Item .Reference Type
An alias for this value type's equivalent reference type.
struct URL
A value that identifies the location of a resource, such as an item on a remote server or the path to a local file.
struct URLComponents
A structure that parses URLs into and constructs URLs from their constituent parts.