Ejemplo n.º 1
0
        private string GetNextLine()
        {
            StringBuilder builder = new StringBuilder();
            int           readByte;

            while ((readByte = _stream.ReadByte()) != '\n' && readByte != -1)
            {
                if (readByte != '\r')
                {
                    builder.Append((char)readByte);
                }
            }
            string line = builder.ToString();

            HttpLog.WriteHttpIn(line);
            return(line);
        }