Thursday, August 16, 2012

Breaking Change: XMLHttpRequest becomes HttpRequest

Posted by Emily Fortuna

Hello Dartisans,

When is the last time you fetched XML data with XMLHttpRequest? Exactly. :)

In the near future I will be landing a change that renames XMLHttpRequest (and the associated names like XMLHttpRequestException) to HttpRequest.

You can review the change list, which resolves (a highly starred request, thanks for the feedback!)  In fact, we recommend that you star the bug so you'll be notified when the change takes effect.

So in the future, when you want to make an XHR request in Dart, you only need to use the shortened HttpRequest name. This is part of our continued efforts to build an easier to use interface for modern web programming.