title: Django REST Framework custom headers in request object
body: <p>I have a problem viewing incoming custom headers from requests when I'm creating a new API view via the <code>@api_view</code> decorator. </p>
  
  <p>My custom API view looks like this:</p>
  
  <pre><code> @api_view(['GET'])
   def TestView(request):
     print(request.META)
     return Response({'message': 'test'})
  </code></pre>
  
  <p>What I'm expecting is doing something like </p>
  
  <p><code>curl --request GET \
    --url http://localhost:8000/test \
    --header 'custom: test'</code></p>
  
  <p>I'd see my custom header called <code>custom</code> to appear in the output. Instead, it's not there at all. From the documentation, it says the following for the request.META field:</p>
  
  <pre><code>A dictionary containing all available HTTP headers. Available headers depend on the client and server, but here are some examples:
  </code></pre>
  
  <p>Whereas, they don't appear at all in my output. Am I missing something here?</p>
  
  <p>If it's relevant, I register my URL as such:</p>
  
  <p><code>urlpatterns = [url(r'test', views.TestView, name='test'), ...]</code></p>
  
  <p>My end goal is to write a custom permission class that will parse the custom header and do something related to authentication with it, and either allow or deny the request. My POC here is just to show the basic example of what I'm dealing with. I can provide the output of the <code>print(request.META)</code> but it's just a wall of text without my expected header present.</p>