<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def end(self):
 """ Ends the response. Useful for quickly ending connection with no data sent """

        self.send_headers()
        self.write()
        self.write_eof()
        self.has_ended = True