Skip to main content

Headers

Echo back the HTTP request headers the API received. Useful for debugging what your application (or a proxy in between) is actually sending — user agent, authorization scheme, content negotiation.

Making Requests

Use GetHeadersAsync on the Utilities resource.

Task<UtilitiesHeadersResponse> GetHeadersAsync(CancellationToken cancellationToken = default)

Returns

UtilitiesHeadersResponse wrapping IReadOnlyDictionary<string, string> — header name to value, as received by the API. The Authorization value is returned redacted by the API.

Examples

using MarketDataApp;

using var client = await MarketDataClient.CreateAsync();

var headers = await client.Utilities.GetHeadersAsync();
foreach (var (name, value) in headers.Values)
{
Console.WriteLine($"{name}: {value}");
}