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

Refit.RequestBuilder

public static class RequestBuilder
Provides static methods for creating request builders for Refit interface types. This class enables the generation of strongly-typed HTTP client implementations based on interface definitions and optional settings.
public static IRequestBuilder<T> ForType<T>(RefitSettings settings)

Creates an HTTP request builder for the specified interface type.

public static IRequestBuilder<T> ForType<T>()

Creates a request builder for the specified type, enabling construction of requests against its members.

public static IRequestBuilder ForType(Type refitInterfaceType, RefitSettings settings)

Creates an implementation of the specified Refit interface for making HTTP requests.

public static IRequestBuilder ForType(Type refitInterfaceType)

Creates an instance of an IRequestBuilder for the specified Refit interface type.