Class ProviderEndpointHeader
- Namespace
- MailFathom.AI.Providers
- Assembly
- MailFathom.AI.dll
One header a request carries beside whatever the credential writes, already resolved for that request.
public sealed class ProviderEndpointHeader
- Inheritance
-
ProviderEndpointHeader
- Inherited Members
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.
Constructors
- ProviderEndpointHeader(string, string)
One header a request carries beside whatever the credential writes, already resolved for that request.
Properties
- Name
The field name the request writes.
- Value
The resolved value, which is secret material and never reaches a log.