Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UnityWebRequest.PATCH Handler

Discussion in 'Scripting' started by Nigey, Dec 23, 2021.

  1. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    Hi Guys,

    I see UnityWebRequest handles all common requests, except PATCH. I can use a HttpClient to do this, but it's annoying to import loads of System.Net features just for one method in my services. Has anyone tried extending UnityWebRequest to build this method themselves, or dug into this area of Unity's source code?

    Thanks!
     
  2. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    Actually I may need this to be a UnityWebRequest otherwise I'm locking out the platform of WebGL. As that doesn't support System.Net. Thoughts guys? How can I get UnityWebRequest to use PATCH? might need to dig into it's code.