private void newClient_ResponseSent(HttpWebServerRequest request, HttpWebServerResponseData response) { if (response.Cache.CacheType == HttpWebServerCacheType.Cache && CachedResponses.ContainsKey(request.ToString()) == false) { CachedResponses.Add(request.ToString(), response); } }
public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { FrostbiteConnection.RaiseEvent(ResponseSent.GetInvocationList(), this, response); } Shutdown(); } } catch (Exception e) { } }
public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { this.ResponseSent(this, response); } Shutdown(); } } catch (Exception e) { } }
private void newClient_ResponseSent(HttpWebServerRequest request, HttpWebServerResponseData response) { if (response.Cache.CacheType == HttpWebServerCacheType.Cache && this.m_cachedResponses.ContainsKey(request.ToString()) == false) { this.m_cachedResponses.Add(request.ToString(), response); } }
public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { this.ResponseSent(this, response); } Shutdown(); } } catch (Exception e) { } }
public void Respond(HttpWebServerResponseData response) { try { if (Stream != null) { byte[] bData = Encoding.UTF8.GetBytes(response.ToString()); Stream.Write(bData, 0, bData.Length); if (ResponseSent != null) { FrostbiteConnection.RaiseEvent(ResponseSent.GetInvocationList(), this, response); } Shutdown(); } } catch (Exception e) { } }