internal void ResetAll()
        {
            headerStBuilder.Length = 0;
            StatusCode             = 200;

            isSend                  = false;
            TransferEncoding        = ResponseTransferEncoding.Identity;
            writeContentState       = WriteContentState.HttpHead;
            ContentType             = WebResponseContentType.TextPlain;//reset content type
            ContentEncoding         = ContentEncoding.Plain;
            this.ContentTypeCharSet = TextCharSet.Utf8;
            AllowCrossOriginPolicy  = null;
            headers.Clear();
            ResetWritingBuffer();
        }
        internal void ResetAll()
        {
            headerStBuilder.Length = 0;
            StatusCode = 200;

            isSend = false;
            TransferEncoding = ResponseTransferEncoding.Identity;
            writeContentState = WriteContentState.HttpHead;
            ContentType = WebResponseContentType.TextPlain;//reset content type
            ContentEncoding = ContentEncoding.Plain;
            this.ContentTypeCharSet = TextCharSet.Utf8;
            AllowCrossOriginPolicy = null;
            headers.Clear();
            ResetWritingBuffer();
        }