from rest_framework.request import Request
from rest_framework.views import APIView
class TestApiView(APIView):
def post(self, request):
print(type(request).__name__)
print(request.__class__.__name__)
print(request.__class__)
pass
打印输出
Request
Request
<class 'rest_framework.request.Request'>