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
SetAgentAccessToken(HttpClient, string)
Sets the agent access token for the HttpClient if the passed in token is not null or empty.
public static void SetAgentAccessToken(this HttpClient httpClient, string token)
Parameters
httpClient
HttpClientThe HttpClient to extend.
token
stringAn agent access token.
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.