PATCH Async requests with Windows.Web.Http.HttpClient class

后端 未结 4 1693
花落未央
花落未央 2020-11-29 03:31

I need to do a PATCH request with the Windows.Web.Http.HttpClient class and there is no official documentation on how to do it. How can I do this?<

4条回答
  •  伪装坚强ぢ
    2020-11-29 03:39

    For it to work you need to pass the content like that:

    HttpContent httpContent = new StringContent("Your JSON-String", Encoding.UTF8, "application/json-patch+json");
    

提交回复
热议问题