This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

HttpModule

The module that includes http's providers

Deprecated: see https://angular.io/guide/http

class HttpModule { }
      
      class HttpModule {
}
    

Providers

Provider
{ 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 }