How do you add custom HTTP headers to an HttpClient request?
-
A
By modifying the global fetch API before the call
-
B
By passing an HttpHeaders object via the headers option
-
C
By setting document.headers before the request
-
D
By using a map() pipe operator on the response