WebAsync

Author: Caue Rego (cawas)

This is based on Ford's question which in turn is based on the MSDN library

Description
Uses threads and WebRequest to make HTTP calls.

The initial idea was calling the HEAD to see if the URL exists. Now we also have a full "GetResponse" replacement.

This is better than regular "WebRequest.GetResponse" because this does not lock up the system while waiting for an HTTP answer - and it even goes faster!

Usage
Easier to explain by example. Here, we use any given static method and "yield return StartCoroutine":

We could have used it like this instead:

Now, for using the GetResponse method: