Lines Matching refs:response
12 serve pydoc-style documentation in response to HTTP
259 # generate response
261 response = dispatch_method(method, params)
263 response = self._dispatch(method, params)
264 # wrap response in a singleton tuple
265 response = (response,)
266 response = dumps(response, methodresponse=1,
269 response = dumps(fault, allow_none=self.allow_none,
272 response = dumps(
277 return response.encode(self.encoding, 'xmlcharrefreplace')
357 # XXX A marshalling error in any response will fail the entire
497 return #response has been sent
504 response = self.server._marshaled_dispatch(
525 if len(response) > self.encode_threshold:
529 response = gzip_encode(response)
533 self.send_header("Content-length", str(len(response)))
535 self.wfile.write(response)
557 response = b'No such page'
559 self.send_header("Content-length", str(len(response)))
561 self.wfile.write(response)
624 response = self.dispatchers[path]._marshaled_dispatch(
630 response = dumps(
633 response = response.encode(self.encoding, 'xmlcharrefreplace')
634 return response
645 response = self._marshaled_dispatch(request_text)
648 print('Content-Length: %d' % len(response))
651 sys.stdout.buffer.write(response)
664 response = http.server.DEFAULT_ERROR_MESSAGE % \
670 response = response.encode('utf-8')
673 print('Content-Length: %d' % len(response))
676 sys.stdout.buffer.write(response)
683 XML-RPC response is printed to stdout along with the correct HTTP
928 response = self._get_css(self.path)
931 response = self.server.generate_html_documentation().encode('utf-8')
935 self.send_header("Content-length", str(len(response)))
937 self.wfile.write(response)
967 response = self.generate_html_documentation().encode('utf-8')
970 print('Content-Length: %d' % len(response))
973 sys.stdout.buffer.write(response)