The code is not yet fully working, it is missing sending the request, dealing with timeouts, parsing the response, callbacks and everything.