Skip to content

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

Open
@StartAutomating

Description

@StartAutomating

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

Metadata

Metadata

Labels

TypesTypes and Extended TypesenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions