Both the Rhino and JavaScriptCore versions should now be roughly equivalent in features. Also let me know if you notice and differences between the two.
HTTP.open(url, mode, options)
"url": obvious
"mode": not yet supported ("b" for binary stream is the default and only way to use http-client currently)
"options":
"method" string for the HTTP method
"headers" object for the HTTP request headers
"followsRedirects" (defaults to true)
The object returned by "open" is still an IO stream that also will have the HTTP data attached:
"status" and "statusText" for the HTTP response code and status text
"headers" object for the HTTP response headers
Both support requests with a body too. Just write to the stream before the first time you read from it. After you read the response you can no longer write the request, of course.
I removed the old HttpClient from Isaac. Hopefully no one is still using it. If you are you can just copy the old version of the module to your project and use it directly.
-tom
Neat. Thanks for taking care of this.
Kris Kowal
Christoph