Imported http stuff from uhu repo / uhx branch
minor
Minor
Changed Headers.hx from an abstract to a class. Hopefully a temporary change.
Changed the callback signature for Request.hx::send from Void->Void to Response->Void.
Client side javascript using xhr now loads with onloadend. This allows the callback to be called on success or failure.
haxe.Http changed the headers and param fields from StringMap to List<{header:String, value:String}> so minor fix to Headers.hx.
Reworking Requests.hx static methods to be macro methods - allowing me to bring the api closer to Python Requests. Love it.
`Requests.send( url, GET, headers={ 'content-type':'application/json' } )` works!
Minor fix around compiler marked invalid identifier's
Fixed POST data not being separated correctly.
Requests.hx::post can take post data - `Requests.post( url, callback, data={a:1, b:2} );`
Removed idiot misplaced `if(params!=null)`
Requests::post can `data` arg can be either obj declaration `{a:1, b:2}` or a string `a=1&b=2'
Partial cleanup
Api change response::status_code now response::code
Cookie's appear to be working for js target.
Forgot to commit a bunch of files :|
Changed some abstracts to classes because of macro issues. Will attempt to use abstracts again once I've changed all macro's over to tink_* libraries, instead of my own.
Minor