Implement Response#writeHead.