Added IsCompressionExtension (this string, CompressionMethod) method
This commit is contained in:
parent
ec45f6a7b6
commit
940cb093a1
@ -604,6 +604,11 @@ namespace WebSocketSharp
|
||||
return value.StartsWith ("permessage-");
|
||||
}
|
||||
|
||||
internal static bool IsCompressionExtension (this string value, CompressionMethod method)
|
||||
{
|
||||
return value.StartsWith (method.ToExtensionString ());
|
||||
}
|
||||
|
||||
internal static bool IsNoStatusCode (this ushort code)
|
||||
{
|
||||
return code == (ushort) CloseStatusCode.NoStatusCode;
|
||||
|
Loading…
Reference in New Issue
Block a user