<PackageReference Include="Refit" Version="15.0.0-beta.1" />

Refit.HttpHeaderApplier

static class HttpHeaderApplier
Applies a sanitized header name and value to an HttpRequestMessage, choosing the request or content header collection and optionally validating the value. Shared by the source-generated request runtime and the reflection request builder so both paths behave identically.