// 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. using System; using System.Collections.Generic; using System.Net.Http; using System.Net.WebSockets; namespace Microsoft.AspNetCore.Sockets.Client.Http { public class HttpOptions { public HttpMessageHandler HttpMessageHandler { get; set; } public IReadOnlyCollection> Headers { get; set; } public Func JwtBearerTokenFactory { get; set; } /// /// Gets or sets a delegate that will be invoked with the object used /// by the to configure the WebSocket. /// /// /// This delegate is invoked after headers from and the JWT bearer token from /// has been applied. /// public Action WebSocketOptions { get; set; } } }