Table of Contents

Constructor ProviderEndpointHeader

Namespace
MailFathom.AI.Providers
Assembly
MailFathom.AI.dll

ProviderEndpointHeader(string, string)

One header a request carries beside whatever the credential writes, already resolved for that request.

public ProviderEndpointHeader(string name, string value)

Parameters

name string

The field name, which an operator declared and startup proved to be one.

value string

The resolved value.

Remarks

The shape a gateway in front of several models usually asks for: a tenant, a project, or a routing key that decides which model answers, sent beside the bearer credential rather than instead of it. The value is declared as a secret reference like every other credential here, so it is resolved per request and released with the credential that carries it.

Deliberately not a place to write an authorization scheme. What proves the deployment's identity is ProviderEndpointCredential, and startup refuses a header naming what the client construction already writes, so a second credential cannot arrive here and silently win or lose against the declared one.

A class rather than a record, for the reason ProviderEndpointCredential is one: a record synthesizes a ToString() printing every positional member, so an instance interpolated into a log line or an exception message would put resolved secret material in clear text. Nothing here needs value equality.