How do I add custom header using C# generated proxy client?
ThisNoName opened this issue · comments
I have WebApi project, tested the custom header using Postman, works fine. But can't figure out how to add the header using WebApiProxy generated C# client.
var client = new TestClient();
client.HttpClient.DefaultRequestHeaders.Add("Clientid", "tester");
var test = new TestClient().Get("123");
Not sure if I understand it correctly. Appreciate your help. Thanks.
Nevermind, this seems working fine. Not sure what I missed earlier.