[Modify] Add it

This commit is contained in:
sta 2018-03-13 15:19:47 +09:00
parent 642df2cc9b
commit 011366f8b6

View File

@ -141,6 +141,18 @@ namespace WebSocketSharp
} }
} }
private static bool isHttpMethod (this string value)
{
return value == "GET"
|| value == "HEAD"
|| value == "POST"
|| value == "PUT"
|| value == "DELETE"
|| value == "CONNECT"
|| value == "OPTIONS"
|| value == "TRACE";
}
private static void times (this ulong n, Action action) private static void times (this ulong n, Action action)
{ {
for (ulong i = 0; i < n; i++) for (ulong i = 0; i < n; i++)