<PackageReference Include="Refit" Version="17.0.0" />

Refit.PropertyAttribute

public sealed class PropertyAttribute : Attribute
Stores local context on HttpRequestMessage.Options on modern .NET, or Properties on older targets, for further processing in a message handler. An explicit key overrides the parameter or interface property name.
public string Key { get; }

Gets the request Options/Properties key, or null to use the parameter or interface property name.

Initializes a new instance of the PropertyAttribute class.

public PropertyAttribute(string key)

Initializes a new instance of the PropertyAttribute class.