python - How do i get the HTTP headers in a Google App Engine webapp2 requesthandler -


how access http headers of request calls method?

class getdbversion(webapp2.requesthandler):     def get(self): # writes out db version 

in main.py

app = webapp2.wsgiapplication([     ('/version', getdbversion       # , more methods 

do inside class webapp2.requesthandler.

self.request.headers

it give dict of headers.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -