You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue-Enhancementthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues
I've just added a pull request for this. Would appreciate feedback as this is my first code pull for PS.
This PR adds the following to the Invoke-WebRequest and Invoke-RestMethod cmdlets:
Adds new StandardMethod ParameterSet to the pre-existing Method parameter
Adds new parameter CustomMethod with ParameterSet CustomMethod
Defaults to StandardMethod ParameterSet
The underlying WebRequest generation will use either StandardMethod or CustomMethod, depending on which set is used. CustomMethod supports the pre-existing verbs defined in the WebRequestMethod enum
Issue-Enhancementthe issue is more of a feature request than a bugUp-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issues
Activity
Mwiedmeyerd commentedon Feb 8, 2017
What is your reasoning, please?
Having non-standard verbs goes against the tenet of PowerShell discoverability
thezim commentedon Feb 8, 2017
Mwiedmeyerd in my case WebDAV. I wouldn't recommend removing the current enum, just some way to override it if needed.
SteveL-MSFT commentedon Feb 11, 2017
Perhaps a new parameter set for
-CustomMethod?joeyaiello commentedon Feb 13, 2017
Just to clarify, you're talking about the
-Methodparameter onInvoke-WebRequestandInvoke-RestMethod?0x4c6565 commentedon Feb 13, 2017
I've just added a pull request for this. Would appreciate feedback as this is my first code pull for PS.
This PR adds the following to the Invoke-WebRequest and Invoke-RestMethod cmdlets:
StandardMethodParameterSet to the pre-existingMethodparameterCustomMethodwith ParameterSetCustomMethodStandardMethodParameterSetThe underlying WebRequest generation will use either
StandardMethodorCustomMethod, depending on which set is used.CustomMethodsupports the pre-existing verbs defined in theWebRequestMethodenumthezim commentedon Feb 14, 2017
Joey Aiello (@joeyaiello) Yes.