[webkit-dev] XHR responseArrayBuffer attribute: possible implementation

Alexey Proskuryakov ap at webkit.org
Mon Oct 25 12:45:14 PDT 2010


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101025/94ace591/attachment.html>


More information about the webkit-dev mailing list