public Stream GetRequestStream()
 {
     if (this._chunkedEncoding)
     {
         this._requestStream = new HttpChunkedReadingStream(this);
     }
     else
     {
         this._requestStream = new HttpFixedLengthReadingStream(this, this._contentLength);
     }
     return this._requestStream;
 }
        } // ReadHeaders


        public Stream GetRequestStream() 
        {
            if (_chunkedEncoding) 
                _requestStream = new HttpChunkedReadingStream(this); 
            else
                _requestStream = new HttpFixedLengthReadingStream(this, _contentLength); 
            return _requestStream;
        } // GetRequestStream
 protected override void PrepareForNewMessage()
 {
     this._requestStream = null;
     this._responseStream = null;
     this._contentLength = 0;
     this._chunkedEncoding = false;
     this._keepAlive = false;
 }
Example #4
0
        } // CanServiceAnotherRequest
        

        // Prepare for reading a new request off of the same socket
        protected override void PrepareForNewMessage()
        {
            _requestStream = null;
            _responseStream = null;
            
            _contentLength = 0;
            _chunkedEncoding = false;
            _keepAlive = false; 
            _allowChunkedResponse = false;
        } // PrepareForNewRequest