API Differences between 16.4.0 and 17.0.0
100 Additions
14 Removals
Refit
-
public enum ContentSerializerNameStyle
-
public class DefaultUrlParameterFormatter : IUrlParameterFormatter
-
public sealed class FormField<TBody>
- public string ExplicitName { get; }
- public FormFieldNames Names { get; }
- public FormField(Func<TBody, object> getter, string clrName, FormFieldNames names, string prefixSegment, string format, CollectionFormat? collectionFormat, bool serializeNull)
- public string ResolveFieldName(IUrlParameterKeyFormatter urlParameterKeyFormatter, ContentSerializerNameStyle nameStyle)
- public FormField(Func<TBody, object> getter, string clrName, string explicitName, string prefixSegment, string format, CollectionFormat? collectionFormat, bool serializeNull)
- public string ResolveFieldName(IUrlParameterKeyFormatter urlParameterKeyFormatter)
-
public struct FormFieldNames : IEquatable<FormFieldNames>
-
public struct GeneratedQueryStringBuilder
-
public static class GeneratedRequestRunner
- public static void AddFormattedCollectionProperty(ref GeneratedQueryStringBuilder builder, RefitSettings settings, IEnumerable values, string key, CollectionFormat collectionFormat, bool preEncoded, ValueTuple<Type, IParameterAttributeProvider, Type> formatting)
- public static void AddFormattedCollectionProperty(ref GeneratedQueryStringBuilder builder, RefitSettings settings, IEnumerable values, string key, CollectionFormat collectionFormat, bool preEncoded, ValueTuple<Type, ICustomAttributeProvider, Type> formatting)
- public static string BuildFormKey(RefitSettings settings, string clrName, string explicitName, string jsonName, string newtonsoftName, string xmlName, string prefixSegment)
- public static string BuildRequestPath<T>(string relativePathTemplate, bool allowUnmatchedParameter, ValueTuple<int, int> range, T value) where T : ISpanFormattable
- public static string BuildRequestPath<T>(string relativePathTemplate, bool allowUnmatchedParameter, ValueTuple<int, int> range, T value, string format) where T : ISpanFormattable
- public static HttpContent CreateBodyContent<TBody>(RefitSettings settings, TBody body, JsonTypeInfo<TBody> typeInfo, BodySerializationMethod serializationMethod, bool streamBody)
- public static string FormatUrlParameter(RefitSettings settings, object value, IParameterAttributeProvider attributeProvider, Type type)
- public static string FormatUrlParameter(RefitSettings settings, object value, ICustomAttributeProvider attributeProvider, Type type)
- public static string RoundTripEscapePath(string value, RefitSettings settings, IParameterAttributeProvider attributeProvider, Type type)
- public static string RoundTripEscapePath(string value, RefitSettings settings, ICustomAttributeProvider attributeProvider, Type type)
- public static void SetRequestJsonTypeInfo<T>(HttpRequestMessage request, JsonTypeInfo<T> typeInfo)
-
public interface IContentSerializerNameStyle
-
public interface IHttpContentSerializer
-
public interface IParameterAttributeProvider
-
public interface IJsonTypeInfoContentSerializer
-
public interface IUrlParameterFormatter
-
public class JsonContentSerializer : IHttpContentSerializer
-
public class ObjectToInferredTypesConverter : JsonConverter<object>
-
public sealed class RefitRequestsSettings
-
public sealed class RefitSerializationSettings
-
public class RefitSettings
-
public static class RequestBuilder
-
public sealed class RequestCompressionOptions
-
public sealed class RestMethodInfo : IEquatable<RestMethodInfo>
- public Type HostingType { get; set; }
- public MethodInfo MethodInfo { get; set; }
- public string Name { get; set; }
- public string RelativePath { get; set; }
- public Type ReturnType { get; set; }
- public RestMethodInfo(string Name, Type HostingType, MethodInfo MethodInfo, string RelativePath, Type ReturnType)
- public static bool op_Equality(RestMethodInfo left, RestMethodInfo right)
- public static bool op_Inequality(RestMethodInfo left, RestMethodInfo right)
- public RestMethodInfo <Clone>$()
- public void Deconstruct(out string Name, out Type HostingType, out MethodInfo MethodInfo, out string RelativePath, out Type ReturnType)
- public bool Equals(RestMethodInfo other)
-
public class RestMethodParameterInfo
-
public class RestMethodParameterProperty
-
public static class RestService
- public static T For<T>(HttpClient client, IRequestBuilder<T> builder)
- public static T For<T>(HttpClient client, RefitSettings settings)
- public static T For<T>(HttpClient client)
- public static T For<T>(string hostUrl, RefitSettings settings)
- public static T For<T>(string hostUrl)
- public static object For(Type refitInterfaceType, HttpClient client, IRequestBuilder builder)
- public static object For(Type refitInterfaceType, HttpClient client, RefitSettings settings)
- public static object For(Type refitInterfaceType, HttpClient client)
- public static object For(Type refitInterfaceType, string hostUrl, RefitSettings settings)
- public static object For(Type refitInterfaceType, string hostUrl)
- public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context)
- public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, bool allowReflectionFallback)
- public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, RefitSettings settings)
- public static T ForGenerated<T>(HttpClient client, JsonSerializerContext context, RefitSettings settings, bool allowReflectionFallback)
- public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context)
- public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, bool allowReflectionFallback)
- public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, RefitSettings settings)
- public static T ForGenerated<T>(string hostUrl, JsonSerializerContext context, RefitSettings settings, bool allowReflectionFallback)
-
public sealed class SystemTextJsonContentSerializer : IHttpContentSerializer, IStreamingContentSerializer, ISynchronousContentSerializer, ISynchronousContentDeserializer, IJsonTypeInfoContentSerializer
- public ContentSerializerNameStyle NameStyle { get; }
- public static SystemTextJsonContentSerializer ForContext(JsonSerializerContext context)
- public static SystemTextJsonContentSerializer ForContext(JsonSerializerContext context, bool allowReflectionFallback)
- public T DeserializeFromString<T>(string content, JsonTypeInfo<T> typeInfo)
- public IAsyncEnumerable<T> DeserializeStreamAsync<T>(Stream stream, StreamingContentFormat format, JsonTypeInfo<T> typeInfo, CancellationToken cancellationToken = default)
- public Task<T> FromHttpContentAsync<T>(HttpContent content, JsonTypeInfo<T> typeInfo, CancellationToken cancellationToken = default)
- public string GetFieldNameForProperty(PropertyInfo propertyInfo)
- public HttpContent ToHttpContent<T>(T item, JsonTypeInfo<T> typeInfo)
- public HttpContent ToHttpContentSynchronous<T>(T item, JsonTypeInfo<T> typeInfo)
- public HttpContent ToStreamingHttpContent<T>(T item, JsonTypeInfo<T> typeInfo)
- public SystemTextJsonContentSerializer WithContext(JsonSerializerContext context)
- public SystemTextJsonContentSerializer WithContext(JsonSerializerContext context, bool allowReflectionFallback)