I need to make a HTTP request in my angular solution. I have created a service with a HTTP client.
However, I can't seem to add the right headers.
Here is what the working request looks like in python :
requests.get('https://api.github.com/user', auth=HTTPBasicAuth('user', 'password'))
How can I 'translate' this into the right request for my example ? :
public getFile() {
return this.http.get('https://api.github.com/user', {headers :myGetHeaders});
}