Use HTTPClientfactory to create HTTPClient request using Basic HttpClient , Named HTTP Client and Typed HTTP client For more details visit,
Named HTTPClient - https://www.thecodebuzz.com/create-named-httpclient-ihttpclientfactory-asp-net-core/
Typed HTTPClient - https://www.thecodebuzz.com/typed-httpclient-using-httpclientfactory-in-asp-net-core/