var http = createRequestObject();
Can you show with the help of a example
No, you should Google for it.
Lies! You can do that! (you just won't, which is of course the only correct thing to do)