code: def options(self, request, *args, **kwargs):
          
  
          response = Response()
  
          response.headers['Allow'] = ', '.join(self.allowed_methods)
          response.headers['Content-Length'] = '0'
  
          return response
docs: Handles responding to requests for the OPTIONS HTTP verb.