From 9ba935f723af2e395d3e1586a26663fc678a3512 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 14 Mar 2018 16:21:32 +0900 Subject: [PATCH] [Modify] Add it --- websocket-sharp/Ext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 4713ac41..5e42b235 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -595,6 +595,13 @@ namespace WebSocketSharp return opcode == Opcode.Text || opcode == Opcode.Binary; } + internal static bool IsHttpMethod (this string value, Version version) + { + return version == HttpVersion.Version10 + ? value.isHttpMethod10 () + : value.isHttpMethod (); + } + internal static bool IsPortNumber (this int value) { return value > 0 && value < 65536;