Beispiel #1
0
 public static string GetDescription(this WebSocketSharp.Net.HttpStatusCode code)
 {
     return(((int)code).GetStatusDescription());
 }
Beispiel #2
0
 internal static void Close(this WebSocketSharp.Net.HttpListenerResponse response, WebSocketSharp.Net.HttpStatusCode code)
 {
     response.StatusCode = (int)code;
     response.OutputStream.Close();
 }
Beispiel #3
0
 internal void Close(WebSocketSharp.Net.HttpStatusCode code)
 {
     this._websocket.Close(HttpResponse.CreateCloseResponse(code));
 }
 internal void Close(WebSocketSharp.Net.HttpStatusCode code)
 {
     this._context.Response.Close(code);
 }
Beispiel #5
0
 /// <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());
 }