#if !NET20 using System.Text; namespace Apewer.WebSocket { internal class FlashSocketPolicyRequestHandler { public static string PolicyResponse = "\n" + "\n" + " \n" + " \n" + "\n" + "\0"; public static ComposableHandler Create(HttpRequest request) { return new ComposableHandler { Handshake = sub => FlashSocketPolicyRequestHandler.Handshake(request, sub), }; } public static byte[] Handshake(HttpRequest request, string subProtocol) { WebSocketLog.Debug("Building Flash Socket Policy Response"); return Encoding.UTF8.GetBytes(PolicyResponse); } } } #endif