public void Dispose() { if (OriginalResponse != null) { OriginalResponse.Dispose(); OriginalResponse = null; } if (ResponseStream != null) { ResponseStream.Dispose(); ResponseStream = null; /*if (streamKey != null) * { * streamCache.ClearAsync(streamKey, StreamType.File).Wait(); * }*/ } }
public void End() { Body.Flush(); OriginalResponse.End(); }
public void Redirect(string url, bool permanent) { OriginalResponse.Redirect(url, permanent); End(); }
public virtual void AddHeader(string key, string value) { OriginalResponse.AddHeader(key, value); }
public virtual void SetCookie(string key, string value, HttpCookieOptions options) { OriginalResponse.SetCookie(key, value, options); }
public virtual void End() { OriginalResponse.End(); }
public void End() { Body.Flush(); _isEnded = true; OriginalResponse.End(); }
public Task WriteAsync(string text, CancellationToken token) { return(OriginalResponse.WriteAsync(text, token)); }
public Task WriteAsync(string text) { return(OriginalResponse.WriteAsync(text)); }
public void Write(byte[] data) { OriginalResponse.Write(data); }
public void Write(string text) { OriginalResponse.Write(text); }