using System.Net.Http;
namespace AnchorCli.OpenRouter;
///
/// Provides extension methods for adding OpenRouter-specific HTTP headers.
///
public static class OpenRouterHeaders
{
///
/// Applies the required OpenRouter headers to the specified HttpClient.
///
public static void ApplyTo(HttpClient httpClient)
{
httpClient.DefaultRequestHeaders.TryAddWithoutValidation("HTTP-Referer", "https://git.technopunk.space/tomi/AnchorCli");
httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-OpenRouter-Title", "Anchor CLI");
httpClient.DefaultRequestHeaders.TryAddWithoutValidation("X-OpenRouter-Categories", "cli-agent");
}
}