p.location-badge. exported from angular2/http defined in angular2/src/http/backends/xhr_backend.ts (line 62) :markdown Creates XHRConnection instances. This class would typically not be used by end users, but could be overridden if a different backend implementation should be used, such as in a node backend. #Example ``` import {Http, MyNodeBackend, httpInjectables, BaseRequestOptions} from 'angular2/http'; @Component({ viewBindings: [ httpInjectables, bind(Http).toFactory((backend, options) => { return new Http(backend, options); }, [MyNodeBackend, BaseRequestOptions])] }) class MyComponent { constructor(http:Http) { http('people.json').subscribe(res => this.people = res.json()); } } ``` .l-main-section h2 Annotations .l-sub-section h3.annotation Injectable pre.prettyprint code. @Injectable() .l-main-section h2 Members .l-sub-section h3 constructor pre.prettyprint code. constructor(_browserXHR: BrowserXhr, _baseResponseOptions: ResponseOptions) :markdown .l-sub-section h3 createConnection pre.prettyprint code. createConnection(request: Request) :markdown