QueryParameters

interface QueryParameters

Represents a set of query parameters for a URL request.

Properties

Link copied to clipboard
abstract val parameters: Map<String, String>

Key-value pairs of query parameters.

Functions

Link copied to clipboard
open fun encode(): String

Encodes the query parameters into a URL-encoded string.

Link copied to clipboard
fun QueryParameters.parametersOf(vararg parameters: Pair<String, Any?>): Map<String, String>

Create a query parameter map from the given pairs.

Link copied to clipboard
open fun Boolean.toInt(): Int

Convert a boolean value to an integer.