Public
HTTP
queryParams
@trcl
HTTP
Handling query params in requests Using the standard URL#searchParams method, you can grab query parameters out of any val that is operating using the Web API . This val demonstrates how to grab one or more query parameters. It returns the all the query parameters found as a json response.
queryParams
@stevekrouse
HTTP
Handling query params You can grab query parameters out of any val that is operating using the Web API using URL#searchParams . This val demonstrates how to grab a single name parameter, as well as convert the entire query string into an object. It returns the all the query parameters found as a json response. Example https://stevekrouse-queryparams.web.val.run/?name=Steve&foo=bar {
"name": "Steve",
"all": {
"name": "Steve",
"foo": "bar"
}
}
v3
October 23, 2023