def _return_response(self, response):
self.filter_headers(response.msg)<EOL>if "<STR_LIT>" in response.msg:<EOL><INDENT>del response.msg["<STR_LIT>"]<EOL><DEDENT>self.send_response(response.status, response.reason)<EOL>for header_key, header_value in response.msg.items():<EOL><INDENT>self.send_header(header_key, header_value)<EOL><DEDENT>body = response.read()<EOL>self.send_header('<STR_LIT>', str(len(body)))<EOL>self.end_headers()<EOL>self.wfile.write(body)<EOL>
:type result: HTTPResponse