using Elsa.Http.Contexts; namespace Elsa.Http; /// /// A strategy that reads a of a given content type. /// public interface IHttpContentParser { /// /// The priority of the parser as compared to other parsers. /// The higher the number, the higher priority. /// int Priority { get; } /// /// Returns a value indicating whether this reader supports the specified content type. /// bool GetSupportsContentType(HttpResponseParserContext context); /// /// Reads the specified stream and returns a parsed object of the specified type. If no type is specified, a string is returned. /// Task ReadAsync(HttpResponseParserContext context); }