def send_headers(self, status_code=<NUM_LIT:200>, headers=None, content_type="<STR_LIT>"):
self.send_response(status_code)<EOL>self.send_header('<STR_LIT:Content-Type>', content_type)<EOL>if type(headers) is dict:<EOL><INDENT>for key, value in headers.items():<EOL><INDENT>self.send_header(key, value)<EOL><DEDENT><DEDENT>if self.query:<EOL><INDENT>self.send_header('<STR_LIT>', repr(self.query))<EOL><DEDENT>if self.data:<EOL><INDENT>self.send_header('<STR_LIT>', repr(self.data))<EOL><DEDENT>self.end_headers()<EOL>self.headers_sent = True<EOL>
Send all the HTTP headers and prepare the response for content