Skip to content

QueryParams

[Source]

Encode key-value pairs as a URL query string using RFC 3986 percent-encoding.

Returns a string like key1=value1&key2=value2 with all keys and values percent-encoded. No leading ? — the caller or request builder prepends that when appending to a path.

Returns an empty string for empty params.

primitive val QueryParams

Constructors

create

[Source]

new val create()
: QueryParams val^

Returns


Public Functions

apply

[Source]

Encode params as a query string.

Keys and values are percent-encoded per RFC 3986. Pairs are joined with &. Returns an empty string if params is empty.

fun box apply(
  params: Array[(String val , String val)] val)
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: QueryParams val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: QueryParams val)
: Bool val

Parameters

Returns