// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.AspNetCore.Http;
/// <summary>
/// Defines a contract that represents the result of an HTTP endpoint.
/// </summary>
public interface IResult
{
/// <summary>
/// Write an HTTP response reflecting the result.
/// </summary>
/// <param name="httpContext">The <see cref="HttpContext"/> for the current request.</param>
/// <returns>A task that represents the asynchronous execute operation.</returns>
Task ExecuteAsync(HttpContext httpContext);
}
|