The query URL component as a string, or nil
if not present.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
var query: String? { get set }
Discussion
For example, in the URL http://www
, the query string is key1=value1&key2=value2
.