def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Raised on HTTP session failure
StringIO having the received data
StringIO