export class XHRConnection
export class XHRConnection
exported from angular2/http defined in angular2/src/http/backends/xhr_backend.ts (line 11)
Creates connections using XMLHttpRequest
. Given a fully-qualified
request, an XHRConnection
will immediately create an XMLHttpRequest
object and send the
request.
This class would typically not be created or interacted with directly inside applications, though
the MockConnection
may be interacted with in tests.
Constructor
constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions)
constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions)
Not Yet Documented
Members
request : Request
request : Request
Not Yet Documented
response : Observable<Response>
response : Observable<Response>
Response EventEmitter
which emits a single Response
value on load event of
XMLHttpRequest
.
readyState : ReadyState
readyState : ReadyState
Not Yet Documented