Skip to content

IRequestBuilder interface

Defined in

Namespace: Refit Assembly: Refit.dll Full name: Refit.IRequestBuilder Modifiers: public abstract

Summary

        Defines a method for creating a delegate that executes a REST API method with the specified parameters and
        returns the result.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471

Remarks

The returned delegate can be used to invoke a REST API method dynamically, given an HTTP client and an array of arguments. This interface is typically used by code generation or dynamic proxy libraries to construct method invokers at runtime. Implementations may use reflection and may require referenced types to be preserved when trimming assemblies.

Properties

NameSummary
SettingsGets the settings used by this request builder.

Methods

NameSummary
BuildRestResultFuncForMethodBuilds a delegate that executes the specified REST method using the provided HTTP client and arguments.