public void Dispose() { Method.Dispose(); Path.Dispose(); HttpVersion.Dispose(); Headers.Dispose(); Method = Path = HttpVersion = default(ReadableBuffer); Headers = default(HttpRequestHeaders); }
public void Dispose() { Headers.Dispose(); Headers = null; Queries.Dispose(); Queries = null; Encoding = null; Data = null; Length = 0; Client = null; }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { Headers.Dispose(); _Query?.Dispose(); _Cookies?.Dispose(); Content?.Dispose(); } disposed = true; } }
public void Dispose() { if (FreeData && Data is IDisposable) { ((IDisposable)Data).Dispose(); } Data = null; Headers.Dispose(); Headers = null; Cache = -1; FileName = null; Encoding = null; Client = null; }