[Modify] Add it
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user