[Modify] Add it

This commit is contained in:
sta 2019-06-02 22:37:27 +09:00
parent 62fba4875b
commit a04bc16cde

View File

@ -906,6 +906,22 @@ namespace WebSocketSharp.Net
: toResponseStringVersion1 (); : toResponseStringVersion1 ();
} }
internal static bool TryCreateCookie (
string name, string value, out Cookie result
)
{
result = null;
try {
result = new Cookie (name, value);
}
catch {
return false;
}
return true;
}
#endregion #endregion
#region Public Methods #region Public Methods