neverstew-queryparams.web.val.run
trcl avatar
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.
curtcox avatar
echo
@curtcox
HTTP
Echo incoming request as JSON See https://developer.mozilla.org/en-US/docs/Web/API/Request
stevekrouse avatar
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" } }
1
Next
v3
October 23, 2023