25.10.2010, в 12:34, Chris Marrin написал(а):

>> request.open("GET", "data.xml", true, "Text");
>> request.open("GET", "data.xml", true, "XML");
>> request.open("GET", "data.xml", true, "Bytes");
> 
> I'd sure like to try to avoid an explosion in the API. I like Geoff's 
> suggestion of specifying the type of request in open(). Seems like the best 
> API would be to have Geoff's API and then:

Note that open() has username and password as its 4th and 5th arguments. So, 
you'd have to call it like request.open("GET", "data.xml", true, undefined, 
undefined, "Bytes");

- WBR, Alexey Proskuryakov

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to