IHttpClientUserAgent
NexusLabs.Needlr.Generators¶
IHttpClientUserAgent Interface¶
Capability interface declaring that a named HttpClient options type
configures the User-Agent default request header. When implemented, the
source generator emits a
client.DefaultRequestHeaders.UserAgent.ParseAdd(options.UserAgent) call
into the generated AddHttpClient callback, guarded by a null/empty check.
Derived
↳ IStandardHttpClientOptions
Properties¶
IHttpClientUserAgent.UserAgent Property¶
Gets the User-Agent string to apply to the generated HttpClient,
or null to leave the default.