W3cubDocs

/Nushell

url build-query for network

Converts record or table into query string applying percent-encoding.

Signature

> url build-query {flags}

Input/output types:

input output
record string
table string

Examples

Outputs a query string representing the contents of this record

> { mode:normaluserid:31415 } |url build-query
mode=normal&userid=31415

Outputs a query string representing the contents of this 1-row table

> [[foobar]; ["1""2"]] |url build-query
foo=1&bar=2

Outputs a query string representing the contents of this record

> {a:"AT&T", b:"AT T"} |url build-query
a=AT%26T&b=AT+T

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/url_build-query.html