コード例 #1
0
ファイル: Ext.cs プロジェクト: msruzy/digimon-linkz-client
 public static string GetDescription(this WebSocketSharp.Net.HttpStatusCode code)
 {
     return(((int)code).GetStatusDescription());
 }
コード例 #2
0
ファイル: Ext.cs プロジェクト: msruzy/digimon-linkz-client
 internal static void Close(this WebSocketSharp.Net.HttpListenerResponse response, WebSocketSharp.Net.HttpStatusCode code)
 {
     response.StatusCode = (int)code;
     response.OutputStream.Close();
 }
コード例 #3
0
 internal void Close(WebSocketSharp.Net.HttpStatusCode code)
 {
     this._websocket.Close(HttpResponse.CreateCloseResponse(code));
 }
コード例 #4
0
 internal void Close(WebSocketSharp.Net.HttpStatusCode code)
 {
     this._context.Response.Close(code);
 }
コード例 #5
0
ファイル: Ext.cs プロジェクト: the8tre/websocket-sharp
 /// <summary>
 ///     Gets the description of the specified HTTP status <paramref name="code" />.
 /// </summary>
 /// <returns>
 ///     A <see cref="string" /> that represents the description of the HTTP status code.
 /// </returns>
 /// <param name="code">
 ///     One of <see cref="Net.HttpStatusCode" /> enum values, indicates the HTTP status code.
 /// </param>
 public static string GetDescription(this HttpStatusCode code)
 {
     return(((int)code).GetStatusDescription());
 }