p.location-badge. exported from angular2/http defined in angular2/src/http/backends/xhr_backend.ts (line 9) :markdown 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. .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions) :markdown .l-sub-section h3 request :markdown .l-sub-section h3 response :markdown Response EventEmitter which emits a single Response value on load event of `XMLHttpRequest`. .l-sub-section h3 readyState :markdown .l-sub-section h3 dispose pre.prettyprint code. dispose() :markdown Calls abort on the underlying XMLHttpRequest.