Hey Gears team,
Few things I have noticed with GearsHttpRequest:
1) The value param to setRequestHeader must be a String. W3C does
define that as the type of the param but other implemtations are more
forigving and will convert to a string for you. For instance,
this.xhr_.setRequestHeader('Content-Length', content.length);
throws an error with GearsHttpRequest because content.length is not a
String but doesn't with any other XmlHttpRequest object.
2) On that note the 'Content-Length' header is not alowed. :) Just
noticed that is in the W3C spec. Probably will be a gotcha for most
coders though. but, I must say, the error messaging was great for #1
and #2.
3) In the open method, the url must be a string. This is true
according to the type as well for W3C but all other XmlHttpRequest
objects are more forgiving and call toString() on the object if it is
present.
All three are easy to work around on the code end so nothing major,
just FYI but you probably knew already. :)
Awesome job with the new Apis!
-- Steven