public ReadChunkedHeaderState(IHttpStreamParserContext context)
        {
            Contract.Requires(context != null);

            WebLog.Logger.Verbose("Transitioning to read chunked header state");

            _context = context;
        }
        public ReadHttp10BodyState( IHttpStreamParserContext context )
        {
            Contract.Requires( context != null );

            WebLog.Logger.Verbose( "Transitioning to read HTTP 1.0 body state" );

            _context = context;
        }
        public ReadChunkedBodyState(IHttpStreamParserContext context, int chunkSize)
        {
            Contract.Requires(context != null);
            Contract.Requires(chunkSize>0);

            WebLog.Logger.Verbose("Transitioning to read chunked body state. Chunk size = " + chunkSize);

            _remainingDataNeeded = chunkSize + LengthOfCrLf;
            _context = context;
            _body = new MemoryStream(chunkSize);
            _chunkSize = chunkSize;
        }