using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Tgstation.Server.Client
{
///
/// For logging HTTP requests and responses.
///
public interface IRequestLogger
{
///
/// Log a request.
///
/// The representing the request.
/// The for the operation.
/// A representing the running operation.
ValueTask LogRequest(HttpRequestMessage requestMessage, CancellationToken cancellationToken);
///
/// Log a response.
///
/// The representing the request.
/// The for the operation.
/// A representing the running operation.
ValueTask LogResponse(HttpResponseMessage responseMessage, CancellationToken cancellationToken);
}
}