HttpServer.HttpClientContext.Cleanup C# (CSharp) Method

Cleanup() public method

Clean up context.
Make sure to call base.Cleanup() if you override the method.
public Cleanup ( ) : void
return void
        public virtual void Cleanup()
        {
            if (Stream != null)
            {
                Stream.Close();
                _stream = null;
                //m_stackTraceFromNullingOfStream = Environment.StackTrace;
            }

            _currentRequest.Clear();
            _bytesLeft = 0;
            Cleaned(this, EventArgs.Empty);
            _parser.Clear();
        }