var client = new JsonServiceClient("http://example.com/api"); client.AddHeader("Authorization", "Bearer token123");
var client = new JsonServiceClient("http://example.com/api"); client.AddHeader("Content-Type", "application/json");
var client = new JsonServiceClient("http://example.com/api"); client.AddHeader("User-Agent", "MyApp/1.0");This example adds a "User-Agent" header with a value of "MyApp/1.0" to the HTTP request. The package library used for the JsonServiceClient class is ServiceStack.