WriteLine() public method

Write a single line of ASCII text followed by the new line character.
public WriteLine ( string value ) : void
value string The string in ASCII format.
return void
示例#1
0
        /// <summary>
        /// The handler for HTTP POST requests.
        /// TODO: This code has not been tested. It should work, right? I mean, what could possibly go wrong?
        /// </summary>
        /// <param name="processor">The HTTP processor.</param>
        public void HttpPostHandler(HttpProcessor processor)
        {
            string data = string.Empty;

            do
            {
                int next = processor.StreamInput.ReadByte();
                if (next == -1) break;

                data += Convert.ToChar(next);
            }
            while (true);

            processor.WriteLine("<html>A post? Thank you. I needed that.</html>");
        }