protected override void PrepareForNewMessage()
 {
     this._requestStream   = null;
     this._responseStream  = null;
     this._contentLength   = 0;
     this._chunkedEncoding = false;
     this._keepAlive       = false;
 }
示例#2
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
 public Stream GetRequestStream()
 {
     if (this._chunkedEncoding)
     {
         this._requestStream = new HttpChunkedReadingStream(this);
     }
     else
     {
         this._requestStream = new HttpFixedLengthReadingStream(this, this._contentLength);
     }
     return this._requestStream;
 }
示例#4
0
        } // 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;
 }
        } // ReadHeaders


        public Stream GetRequestStream() 
        {
            if (_chunkedEncoding) 
                _requestStream = new HttpChunkedReadingStream(this); 
            else
                _requestStream = new HttpFixedLengthReadingStream(this, _contentLength); 
            return _requestStream;
        } // GetRequestStream
示例#7
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