def start_response(self,status,headers):
'''
Construct our response header completely
:status:(eg. '200 OK')
:headers:(eg\. [('Content-Type','text/html')])
:return:NoneType
:modify self.response_header:(eg. 'HTTP/1.1 200 OK\r\nxxx: xxx\r\n\')
'''
self.response_header='HTTP/1.1 '+status+'\r\n' # 响应头的起始行
for header in headers:
self.response_header+="%s: %s\r\n"%(header[0],header[1])
self.response_header+="Author: orris\r\n" # 响应头的headers
self.response_header=self.response_header.encode('utf-8') # 响应头变成bytes类型