There was an error while loading. Please reload this page.
Get the query parameters of a request.
Example:
New-WebRoute -Path "/hellome" -Method "GET" -ScriptBlock { if ($request.Query['name']) { $response.Send('Hello ' + $request.Query['name']); } else { $response.Send('Hello World'); } }
PS > Invoke-RestMethod -Uri http://localhost:8082/hellome?name=PowerShell Hello PowerShell