9.0.0 • Published 4 years ago

a4-http-header-interceptor v9.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

a4-http-header-interceptor

Angular 7 Http Header Interceptor

How-To

Install

npm install a4-http-header-interceptor

app.module.ts

  1. Add HttpModule to imports of the app.module.ts.
...
import { HttpHeaderModule } from 'a4-http-header-interceptor';
...

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    ...,
    HttpHeaderModule,
    ...
  ],
  ...
})

Inject the service

constructor(private httpHeaderService: HttpHeaderService) { }

Inject custom header to every http client operations

this.httpHeaderService.setHeader('key','value');
9.0.0

4 years ago

8.0.0

5 years ago

7.0.0

6 years ago

6.0.2

6 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.0.1

7 years ago

5.0.0

7 years ago

0.0.1

7 years ago