open method
- @DomName('XMLHttpRequest.open')
- @DocsEditable()
Specify the desired url
, and method
to use in making the request.
By default the request is done asyncronously, with no user or password authentication information. If async
is false, the request will be send synchronously.
Calling open
again on a currently active request is equivalent to calling abort
.
Note: Most simple HTTP requests can be accomplished using the getString, request, requestCrossOrigin, or postFormData methods. Use of this open
method is intended only for more complex HTTP requests where finer-grained control is needed.
Source
@DomName('XMLHttpRequest.open') @DocsEditable() void open(String method, String url, {bool async, String user, String password}) { if (async == null && user == null && password == null) { _blink.BlinkXMLHttpRequest.instance.open_Callback_2_(this, method, url); } else { _blink.BlinkXMLHttpRequest.instance .open_Callback_5_(this, method, url, async, user, password); } }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/HttpRequest/open.html