Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using a custom value for HttpMethod

I'm using the HttpClient and I need to set a non-standard type for the HttpMethod. Where using HttpWebRequest only expects a string, HttpClient expects an HttpMethod. Enumerating the available values in HttpMethod, I don't see a way to add a custom one. Any thoughts?

like image 781
earthling Avatar asked Oct 25 '13 17:10

earthling


1 Answers

Don't know why I didn't think of trying this before, but I can call new HttpMethod("MYMETHOD");

like image 168
earthling Avatar answered Sep 17 '22 01:09

earthling