code: def shutdown_request(self, request):
          
  
          try:
              request.shutdown(socket.SHUT_WR)
          except socket.error:
              pass
  
          self.close_request(request)
docs: Called to shutdown and close an individual request.