How to use '@angular/common/http' in JavaScript

Every line of '@angular/common/http' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
10public static getDefaultHttpHeaders() {
11 const headers = new HttpHeaders({
12 'Content-Type': 'application/json',
13 'Accept': 'application/json'
14 });
15 return headers;

Related snippets