Refit.RestService
Creates Refit interface implementations.
Create an HttpClient with hostUrl as the base address.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Generate a Refit implementation of the specified interface.
Create a source-generated Refit implementation without falling back to reflection.
Create a source-generated Refit implementation without falling back to reflection.
Create a source-generated Refit implementation without falling back to reflection.
Create a source-generated Refit implementation without falling back to reflection.
public static object ForGenerated(Type refitInterfaceType, HttpClient client, RefitSettings settings)
Create a source-generated Refit implementation without falling back to reflection.
Create a source-generated Refit implementation without falling back to reflection.
Create a source-generated Refit implementation that reads and writes JSON with a source-generated context and never falls back to reflection.
public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, bool allowReflectionFallback)
Create a source-generated Refit implementation that reads and writes JSON with a source-generated context.
public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, RefitSettings settings)
Create a source-generated Refit implementation that keeps the settings' serializer options and adds a source-generated JSON context.
public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, RefitSettings settings, bool allowReflectionFallback)
Create a source-generated Refit implementation that keeps the settings' serializer options and adds a source-generated JSON context.
Create a source-generated Refit implementation that reads and writes JSON with a source-generated context and never falls back to reflection.
public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, bool allowReflectionFallback)
Create a source-generated Refit implementation that reads and writes JSON with a source-generated context.
public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, RefitSettings settings)
Create a source-generated Refit implementation that keeps the settings' serializer options and adds a source-generated JSON context.
public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, RefitSettings settings, bool allowReflectionFallback)
Create a source-generated Refit implementation that keeps the settings' serializer options and adds a source-generated JSON context.
public static void RegisterGeneratedFactory(Type refitInterfaceType, Func<HttpClient, IRequestBuilder, object> factory)
Registers a source-generated Refit implementation factory.
Registers a source-generated Refit implementation factory.
Registers a source-generated Refit implementation factory that does not need the reflection request builder.