title: Sending http requests in C# with Unity
body: <p>How can I send HTTP GET and POST requests in C# with Unity?</p>
  
  <p>What I want is:</p>
  
  <ul>
  <li>send json data in post request (I use Unity serializer, so no need in
  new one, I just want to pass string in post data and have ability to
  set ContentType to application/json);</li>
  <li>get response code and body without any problems;</li>
  <li>do it all asynchronous without blocking ui rendering.</li>
  </ul>
  
  <p>What I've tried:</p>
  
  <ul>
  <li>implementing with HttpWebRequest/HttpWebResponse, but it's too hard and low level (if I won't found anything better, I'll have to use it);</li>
  <li>using unity WWW, but it doesn't match my requirements;</li>
  <li>using some external packages from NuGet - Unity don't accept them :(</li>
  </ul>
  
  <p>Most problems were with threading, I'm not experienced enough in it in C#.
  IDE, I use, is Intellij Rider.</p>