- Home /
Why UnityWebRequest.Delete downloadHandler is null?
Why downloadHandler of UnityWebRequest instance created by UnityWebRequest.Delete method is null? And how to fix or get around this?
Answer by ilyes-garifullin · Sep 27, 2016 at 06:14 PM
it was easier than I thought :)
var request = UnityWebRequest.Delete(url);
request.downloadHandler = new DownloadHandlerBuffer();
I have no idea why you need this, and why it works, but it just does.
Is it mentioned in the docs somehere?
EDIT: i had a look, I guess its mentioned in the docs here: https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.Delete.html
But its not 100% clear why it is that way. $$anonymous$$y web server returns a success or failure message on the $$anonymous$$ETE http response, so i need to inspect the response and act appropriately.
In any case, a huge thanks!
Your answer
Follow this Question
Related Questions
Unity web player opening link in new tab 5 Answers
http request over an https webgl 1 Answer
UnityWebRequest: Out of memory 0 Answers
Http Client SendAsync does not return 0 Answers
Web player cache 1 Answer