Refit.IHttpContentSerializer public interface IHttpContentSerializer Provides content serialization to HttpContent. Documentation Code Task<T> FromHttpContentAsync<T>(HttpContent content, CancellationToken cancellationToken = default) Deserializes an object of type T from an HttpContent object. HttpContent ToHttpContent<T>(T item) Serializes an object of type T to HttpContent.