blob: a739f36512b0568a1257a65d24a36d31dbfc8f0e [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of html;
class $FACTORYPROVIDER {
static HttpRequest createHttpRequest() =>
JS('HttpRequest', 'new XMLHttpRequest()');
static HttpRequest createHttpRequest_get(String url,
onComplete(HttpRequest request)) =>
_HttpRequestUtils.get(url, onComplete, false);
static HttpRequest createHttpRequest_getWithCredentials(String url,
onComplete(HttpRequest request)) =>
_HttpRequestUtils.get(url, onComplete, true);
}