Created
December 7, 2019 10:25
-
-
Save emrekizildas/3d23cd420a7337f749ace8317665aa5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddHttpClient("example", c => | |
{ | |
c.BaseAddress = new Uri("https://api.example.com/"); | |
c.DefaultRequestHeaders.Add("Accept", "application/json"); | |
c.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment