title: How to get http request header info from the server side with spray RestAPI
body: <p>I am new to Scala and Spray. I have written a simple REST API according to the instructions given in this blog post.
  <a href="http://www.smartjava.org/content/first-steps-rest-spray-and-scala" rel="nofollow">http://www.smartjava.org/content/first-steps-rest-spray-and-scala</a></p>
  
  <p>And all are working as expected.</p>
  
  <p>Now I want to modify the program to print the HTTP headers like Encoding, Language, remote-address, etc.. I would like to print all the header information (purpose is to log these information)</p>
  
  <p>But I could not find a proper documentation or examples. Could anyone please help me to get this done.</p>