- DomName('XMLHttpRequest.send')
- DocsEditable()
Sends the request with any given data
.
Note: Most simple HTTP requests can be accomplished using the getString,
request, requestCrossOrigin, or postFormData methods. Use of this
send
method is intended only for more complex HTTP requests where
finer-grained control is needed.
Other resources
-
XMLHttpRequest.send from MDN.
Source
@DomName('XMLHttpRequest.send') @DocsEditable() void send([body_OR_data]) { if (identical(Zone.current, Zone.ROOT)) { _send(body_OR_data); } else { Zone.current.createTask(_createHttpRequestSendTask, new HttpRequestSendTaskSpecification(this, body_OR_data)); } }