Class HttpClientExtensions
- Namespace
- FoundationaLLM.Common.Extensions
- Assembly
- FoundationaLLM.Common.dll
Adds extension methods to the HttpClient class.
public static class HttpClientExtensions
- Inheritance
-
HttpClientExtensions
- Inherited Members
Methods
SetBearerToken(HttpClient, string)
Sets the bearer token for the HttpClient if the passed in token is not null or empty.
public static void SetBearerToken(this HttpClient httpClient, string token)
Parameters
httpClient
HttpClientThe HttpClient to extend.
token
stringAn auth token.