URLSearchParams

interface URLSearchParams : Serializable, MultiMapLike<String, String> , ProxyHashMap, ProxyObject

JavaScript: URL Search Parameters

The URLSearchParams interface and class is universally supported across most JavaScript and browser environments, and models query (GET-method) parameters expressed within a URL.

URL search parameters are typically associated with, and made available from, URL instances.

Note that parameters can be specified multiple times in a URL; as a result, this structure behaves as MultiMapLike.

 

Mutability

For mutable URL search params, this interface is extended into MutableURLSearchParams.

Inheritors

Properties

Link copied to clipboard
abstract val entries: Set<Map.Entry<String, String>>
Link copied to clipboard
abstract val keys: Set<String>
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract val values: Collection<String>

Functions

Link copied to clipboard
abstract fun containsKey(key: String): Boolean
Link copied to clipboard
abstract fun containsValue(value: String): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun forEach(op: (MapLike.Entry<String, String>) -> Unit)

TBD.

Link copied to clipboard
abstract operator override fun get(key: String): String?

TBD.

Link copied to clipboard
abstract fun getAll(key: String): List<String>

TBD.

Link copied to clipboard
abstract fun getHashEntriesIterator(): Any
Link copied to clipboard
abstract fun getHashSize(): Long
Link copied to clipboard
abstract fun getHashValue(key: Value): Any
Link copied to clipboard
abstract fun getMember(key: String): Any
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
abstract fun has(key: String): Boolean

TBD.

Link copied to clipboard
abstract fun hasHashEntry(key: Value): Boolean
Link copied to clipboard
open override fun hasMember(key: String): Boolean
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract fun keys(): JsIterator<String>

TBD.

Link copied to clipboard
abstract fun putHashEntry(key: Value, value: Value)
Link copied to clipboard
abstract fun putMember(key: String, value: Value)
Link copied to clipboard
open fun removeHashEntry(key: Value): Boolean
Link copied to clipboard
open fun removeMember(key: String): Boolean
Link copied to clipboard
abstract fun sort()

Sort the parameters in-place.

Link copied to clipboard
abstract fun values(): JsIterator<String>

TBD.