PipeScript icon indicating copy to clipboard operation
PipeScript copied to clipboard

`HttpListenerRequest.Splat/ToParameter(s)()` should return the splat of a command

Open StartAutomating opened this issue 1 year ago • 0 comments

This should accept parameters from any potential aspect of the request (route, query, body, headers, and cookies) and turn them into a single [Ordered]@{} dictionary containing the request, mapped to a given command.

This command should accept an open-ended number of inputs. Any [ScriptBlock]s will be considered commands. Any other arguments will be considered options.

Commands should be able to self-describe additional constraints in a variety of ways:

  • [ ] A Command should be able to opt-out of serving content
  • [ ] A Command should be able to opt-out of piping content
  • [ ] A command should be able to not map any number of parameters

StartAutomating avatar May 06 '24 00:05 StartAutomating