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

Refit.RefitRequestsSettings

public sealed class RefitRequestsSettings
Configures requests for a Refit client.

Gets or sets the token getter for a declared Authorization header without a token.

public bool CaptureMethodArguments { get; set; }

Gets or sets a value indicating whether the current call's argument values are captured, in declared parameter order, into the MethodArguments request option so a DelegatingHandler can inspect them (defaults to false).

Gets or sets a custom inner HttpMessageHandler. Does not work if you supply an HttpClient instance.

public Dictionary<string, object> HttpRequestMessageOptions { get; set; }

Gets or initializes local values copied into every request's options on modern .NET, or properties on .NET Framework.

public List<Type> ReturnTypeAdapters { get; }

Gets the return-type adapters the opt-in reflection request builder uses to surface custom return shapes (for example IObservable<T> or Result<T>) from interface methods.

public bool ValidateHeaders { get; set; }

Gets or sets a value indicating whether header values are validated against the framework's header parsers when they are applied to a request (defaults to false).