Skip to content

HTTP Protocol should only transpile a valid method #275

@StartAutomating

Description

@StartAutomating

Currently, the HTTP Protocol transpiler will allow any word to be the "method", that is:

get https://github.com/
notamethod https://github.com/ 

are both considered "valid" input for the transpiler, and would produce code like:

Invoke-RestMethod https://github.com/ -Method get
Invoke-RestMethod https://github.com/ -Method notamethod

Since HTTPs methods are well known, the HTTP transpiler should only transpile "get", but not "notamethod"

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions