HttpModule

The module that includes http's providers

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

class HttpModule { }
      
      class HttpModule {
}
    

提供商

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