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