File: System\Net\WebSockets\ClientWebSocketDeflateConstants.cs
Web Access
Project: src\src\libraries\System.Net.WebSockets.Client\src\System.Net.WebSockets.Client.csproj (System.Net.WebSockets.Client)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Net.WebSockets
{
    internal static class ClientWebSocketDeflateConstants
    {
        /// <summary>
        /// The maximum length that this extension can have, assuming that we're not abusing white space.
        /// <para />
        /// "permessage-deflate; client_max_window_bits=15; client_no_context_takeover; server_max_window_bits=15; server_no_context_takeover"
        /// </summary>
        public const int MaxExtensionLength = 128;
 
        public const string Extension = "permessage-deflate";
 
        public const string ClientMaxWindowBits = "client_max_window_bits";
        public const string ClientNoContextTakeover = "client_no_context_takeover";
 
        public const string ServerMaxWindowBits = "server_max_window_bits";
        public const string ServerNoContextTakeover = "server_no_context_takeover";
    }
}