ahh

a4-http-header-interceptor

Inject custom http headers globally into all http calls

Showing:

Popularity

Downloads/wk

4

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

MIT

Type Definitions

Built-In

Tree-Shakeable

Yes?

Readme

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');

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Tutorials

No tutorials found
Add a tutorial