HttpModule

The module that includes http's providers

已弃用: see https://angular.io/guide/http

class HttpModule { }

Providers

Provider
{ provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions] }
BrowserXhr
{ provide: RequestOptions, useClass: BaseRequestOptions }
{ provide: ResponseOptions, useClass: BaseResponseOptions }
XHRBackend
{ provide: XSRFStrategy, useFactory: _createDefaultCookieXSRFStrategy }