How can I get all the request headers in Django?

前端 未结 9 2536
误落风尘
误落风尘 2020-11-29 20:57

I need to get all the Django request headers. From what i\'ve read, Django simply dumps everything into the request.META variable along with a lot aof other dat

9条回答
  •  鱼传尺愫
    2020-11-29 21:12

    request.META.get('HTTP_AUTHORIZATION') /python3.6/site-packages/rest_framework/authentication.py

    you can get that from this file though...

提交回复
热议问题