File: Resources\HttpHandlerResource.cs
Web Access
Project: src\src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol)
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

#nullable disable

using System.Net.Http;

namespace NuGet.Protocol.Core.Types
{
    /// <summary>
    /// An HttpClient configured for the package source
    /// </summary>
    public abstract class HttpHandlerResource : INuGetResource
    {
        /// <summary>
        /// HttpClientHandler used for credential support.
        /// </summary>
        public abstract HttpClientHandler ClientHandler { get; }

        /// <summary>
        /// Message handler containing the ClientHandler.
        /// </summary>
        public abstract HttpMessageHandler MessageHandler { get; }
    }
}