Esempio n. 1
0
 def _response_start(self, status: bytes, phrase: bytes,
                     res_headers: RawHeaderListType) -> None:
     "Process the response start-line and headers."
     self.response.start_time = thor.time()
     self.response.process_top_line(self.exchange.res_version, status, phrase)
     self.response.process_raw_headers(res_headers)
     StatusChecker(self.response, self.request)
     checkCaching(self.response, self.request)
Esempio n. 2
0
 def _response_start(self, status: bytes, phrase: bytes,
                     res_headers: RawHeaderListType) -> None:
     "Process the response start-line and headers."
     self.response.start_time = thor.time()
     self.response.process_top_line(self.exchange.res_version, status, phrase)
     self.response.process_raw_headers(res_headers)
     StatusChecker(self.response, self.request)
     checkCaching(self.response, self.request)
Esempio n. 3
0
 def _response_start(self, status, phrase, res_headers):
     "Process the response start-line and headers."
     self._st.append('_response_start(%s, %s)' % (status, phrase))
     self.response.start_time = thor.time()
     self.response.version = self.exchange.res_version
     self.response.status_code = status.decode('iso-8859-1', 'replace')
     self.response.status_phrase = phrase.decode('iso-8859-1', 'replace')
     self.response.set_headers(res_headers)
     StatusChecker(self.response, self.request)
     checkCaching(self.response, self.request)