linkHttpModule
npm Package | @angular/http |
---|---|
Module | import { HttpModule } from '@angular/http'; |
Source | http/src/http_module.ts |
linkDeprecation Notes
use @angular/common/http instead
linkOverview
class HttpModule {
}
linkDescription
The module that includes http's providers
linkAnnotations
@NgModule({
providers: [
{ provide: Http, useFactory: httpFactory, deps: [XHRBackend, RequestOptions] },
BrowserXhr,
{ provide: RequestOptions, useClass: BaseRequestOptions },
{ provide: ResponseOptions, useClass: BaseResponseOptions },
XHRBackend,
{ provide: XSRFStrategy, useFactory: _createDefaultCookieXSRFStrategy },
]
})