title: How to access custom HTTP request headers on Django Rest Framework?
body: <p>I'm sending a post request to my API made using django rest framework:</p>
  
  <pre><code>curl --header "X-MyHeader: 123" --data "test=test" http://127.0.0.1:8000/api/update_log/
  </code></pre>
  
  <p>In my rest framework view, I want to get my costum header, and if the custom header satisfies a condition, I will proceed to analyze my post data.</p>
  
  <p>Ok, my view looks like:</p>
  
  <pre><code>class PostUpdateLogView(APIView):
      throttle_classes = ()
      permission_classes = ()
      parser_classes = (
          parsers.FormParser,
          parsers.MultiPartParser,
          parsers.JSONParser,
      )  
  
      renderer_classes = (renderers.JSONRenderer,)
  
      def post(self, request):
          print request.Meta
          # Get custom header
          # Validate custom header
          # Proceed to analize post data
  
          # Make response
          content = {
              'response': 'response',
          }
  
          return Response(content)
  </code></pre>
  
  <p>I'm trying to find my custom header on request.Meta element, but when I print request.Meta, I get a 500 error. If I print request.data, I get the expected response.</p>
  
  <p>¿What is the way to get a custom header on my post request using django rest framework?</p>