title: Handle a request header in Django rest framework to get the secret key passed in the header?
body: <p>I have a django backend for a mobile app.</p>
  
  <p>Im using django rest framework, but im still writing my own views and logic because the api end points are not model based.</p>
  
  <p>The request sent to me has a secret key in the headers which is associated to individual devices registered. Along with it it has post data consisting of device id and other details.</p>
  
  <p>How do i access the secret key value from the header if i am writing my own custom views in django to check if the device id and the secret key passed, matches?</p>